SDL  2.0
SDL_systhread.h File Reference
#include "../SDL_internal.h"
#include "SDL_thread.h"
#include "SDL_thread_c.h"
+ Include dependency graph for SDL_systhread.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int SDL_SYS_CreateThread (SDL_Thread *thread, void *args)
 
void SDL_SYS_SetupThread (const char *name)
 
int SDL_SYS_SetThreadPriority (SDL_ThreadPriority priority)
 
void SDL_SYS_WaitThread (SDL_Thread *thread)
 
void SDL_SYS_DetachThread (SDL_Thread *thread)
 
SDL_TLSDataSDL_SYS_GetTLSData (void)
 
int SDL_SYS_SetTLSData (SDL_TLSData *data)
 
SDL_ThreadSDL_CreateThreadInternal (int(*fn)(void *), const char *name, const size_t stacksize, void *data)
 

Function Documentation

◆ SDL_CreateThreadInternal()

SDL_Thread* SDL_CreateThreadInternal ( int(*)(void *)  fn,
const char *  name,
const size_t  stacksize,
void data 
)

Definition at line 427 of file SDL_thread.c.

References NULL, and SDL_CreateThreadWithStackSize().

Referenced by open_audio_device(), and SDL_TimerInit().

428  {
429 #ifdef SDL_PASSED_BEGINTHREAD_ENDTHREAD
430  return SDL_CreateThreadWithStackSize(fn, name, stacksize, data, NULL, NULL);
431 #else
432  return SDL_CreateThreadWithStackSize(fn, name, stacksize, data);
433 #endif
434 }
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: SDL_opengl.h:1974
GLuint const GLchar * name
#define NULL
Definition: begin_code.h:164
static SDL_Thread * SDL_CreateThreadWithStackSize(int(*fn)(void *), const char *name, const size_t stacksize, void *data)
Definition: SDL_thread.c:315

◆ SDL_SYS_CreateThread()

int SDL_SYS_CreateThread ( SDL_Thread thread,
void args 
)

Definition at line 35 of file SDL_systhread.c.

References SDL_Thread::handle, RunThread(), SDL_OutOfMemory, SDL_SetError, SDL_TRUE, and SDL_Thread::stacksize.

Referenced by SDL_CreateThreadWithStackSize().

37 {
38  return SDL_SetError("Threads are not supported on this platform");
39 }
#define SDL_SetError

◆ SDL_SYS_DetachThread()

void SDL_SYS_DetachThread ( SDL_Thread thread)

Definition at line 66 of file SDL_systhread.c.

References SDL_Thread::handle.

Referenced by SDL_DetachThread().

67 {
68  return;
69 }

◆ SDL_SYS_GetTLSData()

◆ SDL_SYS_SetThreadPriority()

int SDL_SYS_SetThreadPriority ( SDL_ThreadPriority  priority)

Definition at line 54 of file SDL_systhread.c.

References SDL_SetError, SDL_THREAD_PRIORITY_HIGH, and SDL_THREAD_PRIORITY_LOW.

Referenced by SDL_SetThreadPriority().

55 {
56  return (0);
57 }

◆ SDL_SYS_SetTLSData()

int SDL_SYS_SetTLSData ( SDL_TLSData data)

Definition at line 33 of file SDL_systls.c.

References generic_local_storage, SDL_Generic_SetTLSData(), SDL_SetError, and thread_local_storage.

Referenced by SDL_TLSCleanup(), and SDL_TLSSet().

34 {
35  return SDL_Generic_SetTLSData(data);
36 }
int SDL_Generic_SetTLSData(SDL_TLSData *storage)
Definition: SDL_thread.c:163

◆ SDL_SYS_SetupThread()

void SDL_SYS_SetupThread ( const char *  name)

Definition at line 42 of file SDL_systhread.c.

References i, NULL, SDL_assert, SDL_snprintf, SDL_ThreadID(), and sig_list.

Referenced by SDL_RunThread().

43 {
44  return;
45 }

◆ SDL_SYS_WaitThread()

void SDL_SYS_WaitThread ( SDL_Thread thread)

Definition at line 60 of file SDL_systhread.c.

References SDL_Thread::handle.

Referenced by SDL_WaitThread().

61 {
62  return;
63 }