53 SDL_Log(
"Started thread %s: My thread id is %lu, thread data = %s\n",
56 SDL_Log(
"Thread '%s' is alive!\n", (
char *) data);
66 SDL_Log(
"Thread '%s' exiting!\n", (
char *) data);
73 SDL_Log(
"Killed with SIGTERM, waiting 5 seconds to exit\n");
80 main(
int argc,
char *argv[])
94 while (argv[arg] && *argv[arg] ==
'-') {
108 if (thread ==
NULL) {
113 SDL_Log(
"Waiting for thread #1\n");
122 if (thread ==
NULL) {
int ThreadFunc(void *data)
static void killed(int sig)
int main(int argc, char *argv[])
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
#define SDL_assert(condition)
#define SDL_LogSetPriority
#define SDL_SetThreadPriority
static const char * getprioritystr(SDL_ThreadPriority priority)