Skip to content

Commit

Permalink
[core] CSndUList use notify_one() instead of notify_all()
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Apr 13, 2022
1 parent af6ff16 commit 8f22c96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions srtcore/queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ void srt::CSndUList::waitNonEmpty() const
void srt::CSndUList::signalInterrupt() const
{
ScopedLock listguard(m_ListLock);
m_ListCond.notify_all();
m_ListCond.notify_one();
}

void srt::CSndUList::realloc_()
Expand Down Expand Up @@ -413,7 +413,7 @@ void srt::CSndUList::insert_norealloc_(const steady_clock::time_point& ts, const
if (0 == m_iLastEntry)
{
// m_ListLock is assumed to be locked.
m_ListCond.notify_all();
m_ListCond.notify_one();
}
}

Expand Down

0 comments on commit 8f22c96

Please sign in to comment.