SDL
2.0
|
Go to the source code of this file.
Data Structures | |
struct | SDL_mutex |
Macros | |
#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 FAKE_RECURSIVE_MUTEX 1 |
Definition at line 30 of file SDL_sysmutex.c.
Create a mutex, initialized unlocked.
Definition at line 43 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 71 of file SDL_sysmutex.c.
References SDL_mutex::id, and SDL_free.
int SDL_LockMutex | ( | SDL_mutex * | mutex | ) |
Definition at line 81 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 116 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 159 of file SDL_sysmutex.c.
References SDL_mutex::id, NULL, SDL_mutex::owner, SDL_mutex::recursive, and SDL_SetError.