SDL
2.0
|
#include "../../SDL_internal.h"
#include <pthread.h>
#include <signal.h>
#include "SDL_log.h"
#include "SDL_platform.h"
#include "SDL_thread.h"
#include "../SDL_thread_c.h"
#include "../SDL_systhread.h"
#include "SDL_assert.h"
Go to the source code of this file.
Functions | |
static void * | RunThread (void *data) |
int | SDL_SYS_CreateThread (SDL_Thread *thread, void *args) |
void | SDL_SYS_SetupThread (const char *name) |
SDL_threadID | SDL_ThreadID (void) |
int | SDL_SYS_SetThreadPriority (SDL_ThreadPriority priority) |
void | SDL_SYS_WaitThread (SDL_Thread *thread) |
void | SDL_SYS_DetachThread (SDL_Thread *thread) |
Variables | |
static const int | sig_list [] |
Definition at line 73 of file SDL_systhread.c.
References Android_JNI_SetupThread(), NULL, and SDL_RunThread().
Referenced by SDL_SYS_CreateThread().
int SDL_SYS_CreateThread | ( | SDL_Thread * | thread, |
void * | args | ||
) |
Definition at line 90 of file SDL_systhread.c.
References SDL_Thread::handle, RunThread(), SDL_SetError, SDL_TRUE, and SDL_Thread::stacksize.
void SDL_SYS_DetachThread | ( | SDL_Thread * | thread | ) |
Definition at line 319 of file SDL_systhread.c.
References SDL_Thread::handle.
int SDL_SYS_SetThreadPriority | ( | SDL_ThreadPriority | priority | ) |
Definition at line 266 of file SDL_systhread.c.
References SDL_LinuxSetThreadPriority, SDL_SetError, SDL_THREAD_PRIORITY_HIGH, SDL_THREAD_PRIORITY_LOW, and SDL_THREAD_PRIORITY_TIME_CRITICAL.
void SDL_SYS_SetupThread | ( | const char * | name | ) |
Definition at line 127 of file SDL_systhread.c.
References i, NULL, SDL_assert, SDL_snprintf, and sig_list.
void SDL_SYS_WaitThread | ( | SDL_Thread * | thread | ) |
Definition at line 313 of file SDL_systhread.c.
References SDL_Thread::handle.
SDL_threadID SDL_ThreadID | ( | void | ) |
Get the thread identifier for the current thread.
Definition at line 182 of file SDL_systhread.c.
|
static |
Definition at line 66 of file SDL_systhread.c.
Referenced by SDL_SYS_SetupThread().