Searched refs:count_lock (Results 1 – 2 of 2) sorted by relevance
79 SDL_mutex *count_lock; member95 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 …]
26 pthread_mutex_t count_lock=PTHREAD_MUTEX_INITIALIZER; variable34 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()