SDL 2.0
|
Go to the source code of this file.
Functions | |
static void | quit (int rc) |
static const char * | getprioritystr (SDL_ThreadPriority priority) |
int | ThreadFunc (void *data) |
static void | killed (int sig) |
int | main (int argc, char *argv[]) |
Variables | |
static SDL_TLSID | tls |
static int | alive = 0 |
static int | testprio = 0 |
|
static |
Definition at line 34 of file testthread.c.
References SDL_THREAD_PRIORITY_HIGH, SDL_THREAD_PRIORITY_LOW, SDL_THREAD_PRIORITY_NORMAL, and SDL_THREAD_PRIORITY_TIME_CRITICAL.
Referenced by ThreadFunc().
|
static |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 80 of file testthread.c.
References alive, killed(), NULL, quit(), SDL_assert, SDL_CreateThread, SDL_Delay, SDL_GetError, SDL_Init, SDL_Log, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogError, SDL_LogSetPriority, SDL_Quit, SDL_strcmp, SDL_TLSCreate, SDL_TLSGet, SDL_TLSSet, SDL_WaitThread, testprio, ThreadFunc(), and tls.
|
static |
int ThreadFunc | ( | void * | data | ) |
Definition at line 48 of file testthread.c.
References alive, getprioritystr(), NULL, SDL_Delay, SDL_Log, SDL_SetThreadPriority, SDL_THREAD_PRIORITY_LOW, SDL_THREAD_PRIORITY_NORMAL, SDL_THREAD_PRIORITY_TIME_CRITICAL, SDL_ThreadID, SDL_TLSGet, SDL_TLSSet, testprio, and tls.
Referenced by main().
|
static |
Definition at line 22 of file testthread.c.
Referenced by killed(), main(), and ThreadFunc().
|
static |
Definition at line 23 of file testthread.c.
Referenced by main(), and ThreadFunc().
|
static |
Definition at line 21 of file testthread.c.
Referenced by main(), and ThreadFunc().