Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing thread watchdog ticks in 3 thread loop. #2669

Merged
merged 1 commit into from
Feb 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5290,6 +5290,8 @@ void * srt::CUDT::tsbpd(void* param)
bool shall_update_group = false;
#endif

INCREMENT_THREAD_ITERATIONS();

enterCS(self->m_RcvBufferLock);
const steady_clock::time_point tnow = steady_clock::now();

Expand Down
4 changes: 4 additions & 0 deletions srtcore/queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,8 @@ void* srt::CSndQueue::worker(void* param)
{
const steady_clock::time_point next_time = self->m_pSndUList->getNextProcTime();

INCREMENT_THREAD_ITERATIONS();

IF_DEBUG_HIGHRATE(self->m_WorkerStats.lIteration++);

if (is_zero(next_time))
Expand Down Expand Up @@ -1219,6 +1221,8 @@ void* srt::CRcvQueue::worker(void* param)
{
bool have_received = false;
EReadStatus rst = self->worker_RetrieveUnit((id), (unit), (sa));

INCREMENT_THREAD_ITERATIONS();
if (rst == RST_OK)
{
if (id < 0)
Expand Down