| 131 | } |
| 132 | |
| 133 | WELS_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 | |
| 143 | WELS_THREAD_ERROR_CODE WelsEventWait (WELS_EVENT* event, WELS_MUTEX* pMutex, int& iCondition) { |
| 144 | return WaitForSingleObject (*event, INFINITE); |
no test coverage detected