|
SDL
2.0
|
Include dependency graph for SDL_sysmutex.c:Go to the source code of this file.
Data Structures | |
| struct | SDL_mutex |
Macros | |
| #define | _GNU_SOURCE |
| #define | FAKE_RECURSIVE_MUTEX 1 |
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_UnlockMutex (SDL_mutex *mutex) |
| #define _GNU_SOURCE |
Definition at line 24 of file SDL_sysmutex.c.
| #define FAKE_RECURSIVE_MUTEX 1 |
Definition at line 33 of file SDL_sysmutex.c.
Create a mutex, initialized unlocked.
Definition at line 46 of file SDL_sysmutex.c.
References SDL_mutex::id, mutex, NULL, SDL_calloc(), SDL_free(), SDL_OutOfMemory, and SDL_SetError.
Destroy a mutex.
Definition at line 74 of file SDL_sysmutex.c.
References SDL_mutex::id, and SDL_free().
| int SDL_LockMutex | ( | SDL_mutex * | mutex | ) |
Definition at line 84 of file SDL_sysmutex.c.
References SDL_mutex::id, NULL, SDL_mutex::owner, SDL_mutex::recursive, and SDL_SetError.
| int SDL_TryLockMutex | ( | SDL_mutex * | mutex | ) |
Try to lock the mutex
Definition at line 119 of file SDL_sysmutex.c.
References SDL_mutex::id, NULL, SDL_mutex::owner, SDL_mutex::recursive, retval, SDL_MUTEX_TIMEDOUT, and SDL_SetError.
| int SDL_UnlockMutex | ( | SDL_mutex * | mutex | ) |
Definition at line 162 of file SDL_sysmutex.c.
References SDL_mutex::id, NULL, SDL_mutex::owner, SDL_mutex::recursive, and SDL_SetError.