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

Function EventWait

codec/decoder/core/src/wels_decoder_thread.cpp:80–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80int EventWait (SWelsDecEvent* e, int32_t timeout) {
81 DWORD result;
82 if ((uint32_t)timeout == WELS_DEC_THREAD_WAIT_INFINITE || timeout < 0)
83 result = WaitForSingleObject (e->h, INFINITE);
84 else
85 result = WaitForSingleObject (e->h, timeout);
86
87 if (result == WAIT_OBJECT_0)
88 return WELS_DEC_THREAD_WAIT_SIGNALED;
89 else
90 return WAIT_TIMEOUT;
91}
92
93void EventDestroy (SWelsDecEvent* e) {
94 CloseHandle (e->h);

Callers

nothing calls this directly

Calls 1

getTimespecFromTimeoutFunction · 0.85

Tested by

no test coverage detected