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 i, mainthread, NULL, SDL_AtomicSet, SDL_DestroyMutex, SDL_Log, SDL_ThreadID, SDL_WaitThread, and SDLCALL.
Referenced by Run().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 93 of file testlock.c.
References i, mainthread, 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, and terminate().
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(), mainthread, SDL_AtomicGet, SDL_Delay, SDL_GetError, SDL_LockMutex, SDL_Log, SDL_LOG_CATEGORY_APPLICATION, SDL_LogError, SDL_ThreadID, and SDL_UnlockMutex.
Referenced by main(), SDL_WinRTInitNonXAMLApp(), and WINRT_ProcessWindowSizeChange().
void terminate | ( | int | sig | ) |
|
static |
Definition at line 26 of file testlock.c.
|
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 SDL_CreateMutex(), SDL_DestroyMutex(), SDL_Generic_GetTLSData(), and SDL_ThreadID().
|
static |
Definition at line 25 of file testlock.c.
Referenced by main().