Showing the changes to codec/common/src/WelsThreadLib.cpp (1 of 54 files). Show all
Unified · Split
| @@ -417,7 +417,7 @@ WELS_THREAD_ERROR_CODE WelsMultipleEventsWaitAllBlocking (uint32_t nCount, · 416 unmodified lines | |||
| 417 | WELS_EVENT* event_list, WELS_EVENT* master_event) { | 417 | WELS_EVENT* event_list, WELS_EVENT* master_event) { |
| 418 | uint32_t nIdx = 0; | 418 | uint32_t nIdx = 0; |
| 419 | uint32_t uiCountSignals = 0; | 419 | uint32_t uiCountSignals = 0; |
| 420 | uint32_t uiSignalFlag = 0; // UGLY: suppose maximal event number up to 32 | 420 | uint32_t uiSignalFlag = 0; // UGLY: suppose maximal event number up to 32 |
| 421 | 421 | ||
| 422 | if (nCount == 0 || nCount > (sizeof (uint32_t) << 3)) | 422 | if (nCount == 0 || nCount > (sizeof (uint32_t) << 3)) |
| 423 | return WELS_THREAD_ERROR_WAIT_FAILED; | 423 | return WELS_THREAD_ERROR_WAIT_FAILED; |