SDL
2.0
|
Go to the source code of this file.
Macros | |
#define | NUM_THREADS 10 |
Functions | |
int | ThreadFunc (void *data) |
static void | killed (int sig) |
static void | TestWaitTimeout (void) |
int | main (int argc, char **argv) |
Variables | |
static SDL_sem * | sem |
int | alive = 1 |
|
static |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 79 of file testsem.c.
References alive, i, killed(), NULL, NUM_THREADS, SDL_CreateSemaphore, SDL_CreateThread, SDL_Delay, SDL_DestroySemaphore, SDL_GetError, SDL_Init, SDL_Log, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogError, SDL_LogSetPriority, SDL_Quit, SDL_snprintf, SDL_WaitThread, sem, TestWaitTimeout(), ThreadFunc(), and threads.
Definition at line 51 of file testsem.c.
References retval, SDL_CreateSemaphore, SDL_GetTicks(), SDL_Log, SDL_LOG_CATEGORY_APPLICATION, SDL_LogError, SDL_MUTEX_TIMEDOUT, SDL_SemWaitTimeout, and sem.
Referenced by main().
int ThreadFunc | ( | void * | data | ) |
Definition at line 27 of file testsem.c.
References alive, SDL_Delay, SDL_Log, SDL_SemPost, SDL_SemValue, SDL_SemWait, and sem.
Referenced by main().
int alive = 1 |
Definition at line 24 of file testsem.c.
Referenced by killed(), main(), and ThreadFunc().
|
static |
Definition at line 23 of file testsem.c.
Referenced by main(), TestWaitTimeout(), and ThreadFunc().