Searched refs:waiting_sem_ (Results 1 – 2 of 2) sorted by relevance
/external/libvpx/libvpx/vpx_util/ |
D | vpx_thread.h | 38 HANDLE waiting_sem_; member 101 ok &= (CloseHandle(condition->waiting_sem_) != 0); in pthread_cond_destroy() 110 condition->waiting_sem_ = CreateSemaphore(NULL, 0, MAX_DECODE_THREADS, NULL); in pthread_cond_init() 113 if (condition->waiting_sem_ == NULL || in pthread_cond_init() 124 if (WaitForSingleObject(condition->waiting_sem_, 0) == WAIT_OBJECT_0) { in pthread_cond_signal() 140 if (!ReleaseSemaphore(condition->waiting_sem_, 1, NULL)) in pthread_cond_wait()
|
/external/webp/src/utils/ |
D | thread.c | 32 HANDLE waiting_sem_; member 136 ok &= (CloseHandle(condition->waiting_sem_) != 0); in pthread_cond_destroy() 148 condition->waiting_sem_ = CreateSemaphore(NULL, 0, 1, NULL); in pthread_cond_init() 151 if (condition->waiting_sem_ == NULL || in pthread_cond_init() 166 if (WaitForSingleObject(condition->waiting_sem_, 0) == WAIT_OBJECT_0) { in pthread_cond_signal() 186 if (!ReleaseSemaphore(condition->waiting_sem_, 1, NULL)) in pthread_cond_wait()
|