Home
last modified time | relevance | path

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

/external/qemu/distrib/sdl-1.2.12/src/thread/generic/
DSDL_syssem.c79 SDL_mutex *count_lock; member
95 sem->count_lock = SDL_CreateMutex(); in SDL_CreateSemaphore()
97 if ( ! sem->count_lock || ! sem->count_nonzero ) { in SDL_CreateSemaphore()
117 if ( sem->count_lock ) { in SDL_DestroySemaphore()
118 SDL_mutexP(sem->count_lock); in SDL_DestroySemaphore()
119 SDL_mutexV(sem->count_lock); in SDL_DestroySemaphore()
120 SDL_DestroyMutex(sem->count_lock); in SDL_DestroySemaphore()
136 SDL_LockMutex(sem->count_lock); in SDL_SemTryWait()
141 SDL_UnlockMutex(sem->count_lock); in SDL_SemTryWait()
160 SDL_LockMutex(sem->count_lock); in SDL_SemWaitTimeout()
[all …]
/external/valgrind/main/none/tests/
Dpth_cvsimple.c26 pthread_mutex_t count_lock=PTHREAD_MUTEX_INITIALIZER; variable
34 pthread_mutex_lock(&count_lock); in inc_count()
41 pthread_mutex_unlock(&count_lock); in inc_count()
49 pthread_mutex_lock(&count_lock); in watch_count()
52 pthread_cond_wait(&count_hit_threshold, &count_lock); in watch_count()
56 pthread_mutex_unlock(&count_lock); in watch_count()