Skip to content

Commit f57ba89

Browse files
authored
[core] Added missing thread watchdog ticks in 3 thread loop (#2669).
1 parent e8d0533 commit f57ba89

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

srtcore/core.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5290,6 +5290,8 @@ void * srt::CUDT::tsbpd(void* param)
52905290
bool shall_update_group = false;
52915291
#endif
52925292

5293+
INCREMENT_THREAD_ITERATIONS();
5294+
52935295
enterCS(self->m_RcvBufferLock);
52945296
const steady_clock::time_point tnow = steady_clock::now();
52955297

srtcore/queue.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,8 @@ void* srt::CSndQueue::worker(void* param)
523523
{
524524
const steady_clock::time_point next_time = self->m_pSndUList->getNextProcTime();
525525

526+
INCREMENT_THREAD_ITERATIONS();
527+
526528
IF_DEBUG_HIGHRATE(self->m_WorkerStats.lIteration++);
527529

528530
if (is_zero(next_time))
@@ -1219,6 +1221,8 @@ void* srt::CRcvQueue::worker(void* param)
12191221
{
12201222
bool have_received = false;
12211223
EReadStatus rst = self->worker_RetrieveUnit((id), (unit), (sa));
1224+
1225+
INCREMENT_THREAD_ITERATIONS();
12221226
if (rst == RST_OK)
12231227
{
12241228
if (id < 0)

0 commit comments

Comments
 (0)