All users of the function passed the value corresponding to "infinite", and the (currently unused) unix implementation of it only supported infinite wait as well.
Showing the changes to codec/encoder/core/src/slice_multi_threading.cpp (1 of 4 files). Show all
Unified · Split
| @@ -749,8 +749,7 @@ WELS_THREAD_ROUTINE_TYPE CodingSliceThreadProc (void* arg) { · 748 unmodified lines | |||
| 749 | do { | 749 | do { |
| 750 | #ifdef _WIN32 | 750 | #ifdef _WIN32 |
| 751 | iWaitRet = WelsMultipleEventsWaitSingleBlocking (iEventCount, | 751 | iWaitRet = WelsMultipleEventsWaitSingleBlocking (iEventCount, |
| 752 | &pEventsList[0], | 752 | &pEventsList[0]); // blocking until at least one event is |
| 753 | (uint32_t) - 1); // blocking until at least one event is | ||
| 754 | #else | 753 | #else |
| 755 | MT_TRACE_LOG (pEncPEncCtx, WELS_LOG_INFO, | 754 | MT_TRACE_LOG (pEncPEncCtx, WELS_LOG_INFO, |
| 756 | "[MT] CodingSliceThreadProc(), try to call WelsEventWait(pReadySliceCodingEvent[%d]= 0x%p), pEncPEncCtx= 0x%p!\n", | 755 | "[MT] CodingSliceThreadProc(), try to call WelsEventWait(pReadySliceCodingEvent[%d]= 0x%p), pEncPEncCtx= 0x%p!\n", |