Home
last modified time | relevance | path

Searched refs:waiting_sem_ (Results 1 – 2 of 2) sorted by relevance

/external/libvpx/vpx_util/
Dvpx_thread.h42 HANDLE waiting_sem_; member
137 ok &= (CloseHandle(condition->waiting_sem_) != 0); in pthread_cond_destroy()
150 condition->waiting_sem_ = CreateSemaphore(NULL, 0, MAX_DECODE_THREADS, NULL); in pthread_cond_init()
153 if (condition->waiting_sem_ == NULL || condition->received_sem_ == NULL || in pthread_cond_init()
167 while (WaitForSingleObject(condition->waiting_sem_, 0) == WAIT_OBJECT_0) { in pthread_cond_broadcast()
184 if (WaitForSingleObject(condition->waiting_sem_, 0) == WAIT_OBJECT_0) { in pthread_cond_signal()
204 if (!ReleaseSemaphore(condition->waiting_sem_, 1, NULL)) return 1; in pthread_cond_wait()
/external/webp/src/utils/
Dthread_utils.c32 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)) return 1; in pthread_cond_wait()