Lines Matching refs:mutex
41 SDL_mutex * mutex = new SDL_mutex; in SDL_CreateMutex() local
42 return mutex; in SDL_CreateMutex()
55 SDL_DestroyMutex(SDL_mutex * mutex) in SDL_DestroyMutex() argument
57 if (mutex) { in SDL_DestroyMutex()
58 delete mutex; in SDL_DestroyMutex()
65 SDL_mutexP(SDL_mutex * mutex) in SDL_mutexP() argument
67 if (mutex == NULL) { in SDL_mutexP()
73 mutex->cpp_mutex.lock(); in SDL_mutexP()
83 SDL_TryLockMutex(SDL_mutex * mutex) in SDL_TryLockMutex() argument
86 if (mutex == NULL) { in SDL_TryLockMutex()
90 if (mutex->cpp_mutex.try_lock() == false) { in SDL_TryLockMutex()
99 SDL_mutexV(SDL_mutex * mutex) in SDL_mutexV() argument
101 if (mutex == NULL) { in SDL_mutexV()
106 mutex->cpp_mutex.unlock(); in SDL_mutexV()