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

Method Thread

codec/common/src/WelsThread.cpp:61–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void CWelsThread::Thread() {
62 while (true) {
63 WelsEventWait (&m_hEvent,&m_hMutex,m_iConVar);
64
65 if (GetEndFlag()) {
66 break;
67 }
68
69 m_iConVar = 1;
70 ExecuteTask();//in ExecuteTask there will be OnTaskStop which opens the potential new Signaling of next run, so the setting of m_iConVar = 1 should be before ExecuteTask()
71 }
72
73 SetRunning (false);
74}
75
76WELS_THREAD_ERROR_CODE CWelsThread::Start() {
77#ifndef __APPLE__

Callers 1

TheThreadMethod · 0.80

Calls 1

WelsEventWaitFunction · 0.85

Tested by

no test coverage detected