zenilib
0.5.3.0
|
Go to the source code of this file.
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 23 of file SDL_sysmutex.c.
#define FAKE_RECURSIVE_MUTEX 1 |
Definition at line 31 of file SDL_sysmutex.c.
Create a mutex, initialized unlocked.
Definition at line 44 of file SDL_sysmutex.c.
References NULL, SDL_calloc(), SDL_free(), SDL_OutOfMemory, and SDL_SetError().
Referenced by open_audio_device(), SDL_AtomicTryLock(), SDL_CreateCond(), SDL_CreateSemaphore(), SDL_Generic_GetTLSData(), SDL_ReportAssertion(), SDL_StartEventLoop(), and SDL_TimerInit().
Destroy a mutex.
Definition at line 72 of file SDL_sysmutex.c.
References SDL_free().
Referenced by close_audio_device(), SDL_AssertionsQuit(), SDL_DestroyCond(), SDL_DestroySemaphore(), SDL_StopEventLoop(), SDL_TimerInit(), and SDL_TimerQuit().
Definition at line 82 of file SDL_sysmutex.c.
References NULL, and SDL_SetError().
Referenced by outputCallback(), SDL_AddTimer(), SDL_AtomicTryLock(), SDL_AudioLockDevice_Default(), SDL_CondBroadcast(), SDL_CondSignal(), SDL_CondWaitTimeout(), SDL_DestroySemaphore(), SDL_FilterEvents(), SDL_FlushEvents(), SDL_Generic_GetTLSData(), SDL_Generic_SetTLSData(), SDL_PeepEvents(), SDL_RemoveTimer(), SDL_ReportAssertion(), SDL_RunAudio(), SDL_SemPost(), SDL_SemTryWait(), SDL_SemValue(), SDL_SemWaitTimeout(), and SDL_StopEventLoop().
Try to lock the mutex
Definition at line 117 of file SDL_sysmutex.c.
References NULL, SDL_MUTEX_TIMEDOUT, and SDL_SetError().
Definition at line 160 of file SDL_sysmutex.c.
References NULL, and SDL_SetError().
Referenced by outputCallback(), SDL_AddTimer(), SDL_AtomicTryLock(), SDL_AudioUnlockDevice_Default(), SDL_CondBroadcast(), SDL_CondSignal(), SDL_CondWaitTimeout(), SDL_DestroySemaphore(), SDL_FilterEvents(), SDL_FlushEvents(), SDL_Generic_GetTLSData(), SDL_Generic_SetTLSData(), SDL_PeepEvents(), SDL_RemoveTimer(), SDL_ReportAssertion(), SDL_RunAudio(), SDL_SemPost(), SDL_SemTryWait(), SDL_SemValue(), SDL_SemWaitTimeout(), and SDL_StopEventLoop().