|
SDL
2.0
|
#include "../../SDL_internal.h"#include "SDL_thread.h"#include "../SDL_thread_c.h"#include "../SDL_systhread.h"#include <mutex>#include <thread>#include <system_error>
Include dependency graph for SDL_systhread.cpp:Go to the source code of this file.
Functions | |
| static void | RunThread (void *args) |
| int | SDL_SYS_CreateThread (SDL_Thread *thread) |
| 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) |
| SDL_TLSData * | SDL_SYS_GetTLSData (void) |
| int | SDL_SYS_SetTLSData (SDL_TLSData *data) |
Definition at line 40 of file SDL_systhread.cpp.
References SDL_RunThread().
Referenced by SDL_SYS_CreateThread().
| int SDL_SYS_CreateThread | ( | SDL_Thread * | thread | ) |
Definition at line 47 of file SDL_systhread.cpp.
References SDL_Thread::handle, RunThread(), SDL_OutOfMemory, and SDL_SetError.
| void SDL_SYS_DetachThread | ( | SDL_Thread * | thread | ) |
Definition at line 146 of file SDL_systhread.cpp.
References SDL_Thread::handle, and if.
| SDL_TLSData* SDL_SYS_GetTLSData | ( | void | ) |
| int SDL_SYS_SetThreadPriority | ( | SDL_ThreadPriority | priority | ) |
Definition at line 96 of file SDL_systhread.cpp.
References SDL_LOG_CATEGORY_SYSTEM, SDL_LogWarn, SDL_THREAD_PRIORITY_HIGH, SDL_THREAD_PRIORITY_LOW, SDL_THREAD_PRIORITY_TIME_CRITICAL, SDL_Unsupported, and WIN_SetError().
| int SDL_SYS_SetTLSData | ( | SDL_TLSData * | data | ) |
Definition at line 173 of file SDL_systhread.cpp.
References SDL_Generic_SetTLSData().
| void SDL_SYS_SetupThread | ( | const char * | name | ) |
| void SDL_SYS_WaitThread | ( | SDL_Thread * | thread | ) |
| SDL_threadID SDL_ThreadID | ( | void | ) |
Get the thread identifier for the current thread.
Definition at line 74 of file SDL_systhread.cpp.
Referenced by SDL_SYS_SetupThread().