MCPcopy Create free account
hub / github.com/cisco/openh264 / ClearWaitedTasks

Method ClearWaitedTasks

codec/common/src/WelsThreadPool.cpp:365–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365void CWelsThreadPool::ClearWaitedTasks() {
366 CWelsAutoLock cLock (m_cLockWaitedTasks);
367 if (NULL == m_cWaitedTasks) {
368 return;
369 }
370 IWelsTask* pTask = NULL;
371 while (0 != m_cWaitedTasks->size()) {
372 pTask = m_cWaitedTasks->begin();
373 if (pTask->GetSink()) {
374 pTask->GetSink()->OnTaskCancelled();
375 }
376 m_cWaitedTasks->pop_front();
377 }
378}
379
380}

Callers

nothing calls this directly

Calls 5

sizeMethod · 0.80
beginMethod · 0.80
GetSinkMethod · 0.80
pop_frontMethod · 0.80
OnTaskCancelledMethod · 0.45

Tested by

no test coverage detected