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

Function WelsEventSignal

codec/common/src/WelsThreadLib.cpp:133–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133WELS_THREAD_ERROR_CODE WelsEventSignal (WELS_EVENT* event, WELS_MUTEX *pMutex, int* iCondition) {
134 (*iCondition) --;
135 if ((*iCondition) <= 0) {
136 if (SetEvent (*event)) {
137 return WELS_THREAD_ERROR_OK;
138 }
139 }
140 return WELS_THREAD_ERROR_GENERAL;
141}
142
143WELS_THREAD_ERROR_CODE WelsEventWait (WELS_EVENT* event, WELS_MUTEX* pMutex, int& iCondition) {
144 return WaitForSingleObject (*event, INFINITE);

Callers 3

OnTaskMinusOneMethod · 0.85
KillMethod · 0.85
SignalThreadMethod · 0.85

Calls 2

WelsMutexLockFunction · 0.85
WelsMutexUnlockFunction · 0.85

Tested by

no test coverage detected