#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
#include "SDL.h"
Go to the source code of this file.
◆ NUMTHREADS
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 77 of file torturethread.c.
91 signal(SIGSEGV, SIG_DFL);
References i, NULL, NUMTHREADS, quit(), SDL_AtomicSet, SDL_CreateThread, SDL_GetError, SDL_Init, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogError, SDL_LogSetPriority, SDL_Quit, SDL_snprintf, SDL_WaitThread, ThreadFunc(), threads, and time_for_threads_to_die.
◆ quit()
static void quit |
( |
int |
rc | ) |
|
|
static |
◆ SubThreadFunc()
int SubThreadFunc |
( |
void * |
data | ) |
|
◆ ThreadFunc()
int ThreadFunc |
( |
void * |
data | ) |
|
Definition at line 44 of file torturethread.c.
51 SDL_Log(
"Creating Thread %d\n", tid);
60 SDL_Log(
"Thread '%d' waiting for signal\n", tid);
65 SDL_Log(
"Thread '%d' sending signals to subthreads\n", tid);
71 SDL_Log(
"Thread '%d' exiting!\n", tid);
References i, NULL, NUMTHREADS, SDL_AtomicGet, SDL_CreateThread, SDL_Log, SDL_snprintf, SDL_WaitThread, SubThreadFunc(), and time_for_threads_to_die.
Referenced by main().
◆ time_for_threads_to_die