SDL
2.0
|
Go to the source code of this file.
Functions | |
static void | SDL_Quit_Wrapper (void) |
void | printid (void) |
void | terminate (int sig) |
void | closemutex (int sig) |
int | Run (void *data) |
int | main (int argc, char *argv[]) |
Variables | |
static SDL_mutex * | mutex = NULL |
static SDL_threadID | mainthread |
static SDL_Thread * | threads [6] |
static SDL_atomic_t | doterminate |
void closemutex | ( | int | sig | ) |
Definition at line 52 of file testlock.c.
References doterminate, i, mainthread, mutex, NULL, SDL_AtomicSet, SDL_DestroyMutex, SDL_Log, SDL_ThreadID, SDL_WaitThread, and threads.
Referenced by Run().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 93 of file testlock.c.
References doterminate, i, mainthread, mutex, NULL, printid(), Run(), SDL_AtomicSet, SDL_CreateMutex, SDL_CreateThread, SDL_GetError, SDL_Init, SDL_Log, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogError, SDL_LogSetPriority, SDL_Quit_Wrapper(), SDL_snprintf, SDL_ThreadID, terminate(), and threads.
Definition at line 39 of file testlock.c.
References SDL_Log, and SDL_ThreadID.
Referenced by main().
int Run | ( | void * | data | ) |
Definition at line 65 of file testlock.c.
References closemutex(), doterminate, mainthread, mutex, SDL_AtomicGet, SDL_Delay, SDL_GetError, SDL_LockMutex, SDL_Log, SDL_LOG_CATEGORY_APPLICATION, SDL_LogError, SDL_ThreadID, and SDL_UnlockMutex.
Referenced by main(), and SDL_WinRTInitNonXAMLApp().
void terminate | ( | int | sig | ) |
Definition at line 45 of file testlock.c.
References doterminate, and SDL_AtomicSet.
Referenced by main().
|
static |
Definition at line 26 of file testlock.c.
Referenced by closemutex(), main(), Run(), and terminate().
|
static |
Definition at line 24 of file testlock.c.
Referenced by closemutex(), main(), and Run().
Definition at line 23 of file testlock.c.
Referenced by closemutex(), main(), Run(), SDL_CondWait(), SDL_CondWaitTimeout(), SDL_CreateMutex(), SDL_DestroyMutex(), SDL_Generic_GetTLSData(), SDL_LockMutex(), SDL_mutexP(), SDL_mutexV(), SDL_ThreadID(), SDL_TryLockMutex(), and SDL_UnlockMutex().
|
static |
Definition at line 25 of file testlock.c.
Referenced by closemutex(), and main().