#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include "SDL.h"
Go to the source code of this file.
◆ getprioritystr()
◆ killed()
static void killed |
( |
int |
sig | ) |
|
|
static |
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 80 of file testthread.c.
94 while (argv[arg] && *argv[arg] ==
'-') {
108 if (thread ==
NULL) {
113 SDL_Log(
"Waiting for thread #1\n");
122 if (thread ==
NULL) {
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.
◆ quit()
static void quit |
( |
int |
rc | ) |
|
|
static |
◆ ThreadFunc()
int ThreadFunc |
( |
void * |
data | ) |
|
Definition at line 48 of file testthread.c.
53 SDL_Log(
"Started thread %s: My thread id is %lu, thread data = %s\n",
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().
◆ alive
◆ testprio
◆ tls