Home
last modified time | relevance | path

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

/AliOS-Things-master/components/SDL2/src/thread/generic/
A DSDL_syssem.c80 SDL_mutex *count_lock; member
97 sem->count_lock = SDL_CreateMutex(); in SDL_CreateSemaphore()
120 if (sem->count_lock) { in SDL_DestroySemaphore()
139 SDL_LockMutex(sem->count_lock); in SDL_SemTryWait()
144 SDL_UnlockMutex(sem->count_lock); in SDL_SemTryWait()
163 SDL_LockMutex(sem->count_lock); in SDL_SemWaitTimeout()
174 SDL_UnlockMutex(sem->count_lock); in SDL_SemWaitTimeout()
192 SDL_LockMutex(sem->count_lock); in SDL_SemValue()
194 SDL_UnlockMutex(sem->count_lock); in SDL_SemValue()
206 SDL_LockMutex(sem->count_lock); in SDL_SemPost()
[all …]
/AliOS-Things-master/components/posix/example/
A Dpthread_example.c13 static pthread_mutex_t count_lock = PTHREAD_MUTEX_INITIALIZER; variable
22 pthread_mutex_lock(&count_lock); in new_thread_func()
25 pthread_mutex_unlock(&count_lock); in new_thread_func()
49 pthread_mutex_lock(&count_lock); in pthread_example()
52 pthread_mutex_unlock(&count_lock); in pthread_example()

Completed in 3 milliseconds