Skip to content

Commit 8f22c96

Browse files
committed
[core] CSndUList use notify_one() instead of notify_all()
1 parent af6ff16 commit 8f22c96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

srtcore/queue.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ void srt::CSndUList::waitNonEmpty() const
345345
void srt::CSndUList::signalInterrupt() const
346346
{
347347
ScopedLock listguard(m_ListLock);
348-
m_ListCond.notify_all();
348+
m_ListCond.notify_one();
349349
}
350350

351351
void srt::CSndUList::realloc_()
@@ -413,7 +413,7 @@ void srt::CSndUList::insert_norealloc_(const steady_clock::time_point& ts, const
413413
if (0 == m_iLastEntry)
414414
{
415415
// m_ListLock is assumed to be locked.
416-
m_ListCond.notify_all();
416+
m_ListCond.notify_one();
417417
}
418418
}
419419

0 commit comments

Comments
 (0)