SDL
2.0
|
Go to the source code of this file.
Data Structures | |
struct | SDL_mutex |
Functions | |
SDL_mutex * | SDL_CreateMutex (void) |
void | SDL_DestroyMutex (SDL_mutex *mutex) |
int | SDL_LockMutex (SDL_mutex *mutex) |
int | SDL_TryLockMutex (SDL_mutex *mutex) |
int | SDL_mutexV (SDL_mutex *mutex) |
Create a mutex, initialized unlocked.
Definition at line 38 of file SDL_sysmutex.c.
References mutex, NULL, SDL_mutex::owner, SDL_mutex::recursive, SDL_CreateSemaphore, SDL_free, SDL_malloc, SDL_OutOfMemory, and SDL_mutex::sem.
Destroy a mutex.
Definition at line 61 of file SDL_sysmutex.c.
References SDL_DestroySemaphore, SDL_free, and SDL_mutex::sem.
int SDL_LockMutex | ( | SDL_mutex * | mutex | ) |
Definition at line 73 of file SDL_sysmutex.c.
References NULL, SDL_mutex::owner, SDL_mutex::recursive, SDL_SemWait, SDL_SetError, SDL_ThreadID, and SDL_mutex::sem.
int SDL_mutexV | ( | SDL_mutex * | mutex | ) |
Definition at line 136 of file SDL_sysmutex.c.
References NULL, SDL_mutex::owner, SDL_mutex::recursive, SDL_SemPost, SDL_SetError, SDL_ThreadID, and SDL_mutex::sem.
int SDL_TryLockMutex | ( | SDL_mutex * | mutex | ) |
Try to lock the mutex
Definition at line 103 of file SDL_sysmutex.c.
References NULL, SDL_mutex::owner, SDL_mutex::recursive, retval, SDL_SemWait, SDL_SetError, SDL_ThreadID, and SDL_mutex::sem.