VSF Documented
Data Structures | Typedefs | Functions
SDL_thread.h File Reference
#include "../../vsf_sdl2_cfg.h"
#include "kernel/vsf_kernel.h"
#include "SDL_stdinc.h"
#include "begin_code.h"
#include <pthread.h>
#include "close_code.h"

Go to the source code of this file.

Data Structures

struct  SDL_Thread
 

Typedefs

typedef int(* SDL_ThreadFunction) (void *data)
 
typedef vsf_prio_t SDL_ThreadPriority
 
typedef pthread_t SDL_threadID
 
typedef int SDL_TLSID
 
typedef struct SDL_Thread SDL_Thread
 

Functions

SDL_ThreadSDL_CreateThread (SDL_ThreadFunction fn, const char *name, void *data)
 
SDL_ThreadSDL_CreateThreadWithStackSize (SDL_ThreadFunction fn, const char *name, const size_t stacksize, void *data)
 
const char * SDL_GetThreadName (SDL_Thread *thread)
 
SDL_threadID SDL_ThreadID (void)
 
SDL_threadID SDL_GetThreadID (SDL_Thread *thread)
 
int SDL_SetThreadPriority (SDL_ThreadPriority priority)
 
void SDL_WaitThread (SDL_Thread *thread, int *status)
 
void SDL_DetachThread (SDL_Thread *thread)
 
SDL_TLSID SDL_TLSCreate (void)
 
void * SDL_TLSGet (SDL_TLSID id)
 
int SDL_TLSSet (SDL_TLSID id, const void *value, void(*destructor)(void *))
 
void SDL_TLSCleanup (void)
 

Typedef Documentation

◆ SDL_ThreadFunction

typedef int(* SDL_ThreadFunction) (void *data)

◆ SDL_ThreadPriority

◆ SDL_threadID

◆ SDL_TLSID

typedef int SDL_TLSID

◆ SDL_Thread

typedef struct SDL_Thread SDL_Thread

Function Documentation

◆ SDL_CreateThread()

SDL_Thread * SDL_CreateThread ( SDL_ThreadFunction  fn,
const char *  name,
void *  data 
)
extern

◆ SDL_CreateThreadWithStackSize()

SDL_Thread * SDL_CreateThreadWithStackSize ( SDL_ThreadFunction  fn,
const char *  name,
const size_t  stacksize,
void *  data 
)
extern

◆ SDL_GetThreadName()

const char * SDL_GetThreadName ( SDL_Thread thread)
extern

◆ SDL_ThreadID()

SDL_threadID SDL_ThreadID ( void  )
extern

◆ SDL_GetThreadID()

SDL_threadID SDL_GetThreadID ( SDL_Thread thread)
extern

◆ SDL_SetThreadPriority()

int SDL_SetThreadPriority ( SDL_ThreadPriority  priority)
extern

◆ SDL_WaitThread()

void SDL_WaitThread ( SDL_Thread thread,
int *  status 
)
extern

◆ SDL_DetachThread()

void SDL_DetachThread ( SDL_Thread thread)
extern

◆ SDL_TLSCreate()

SDL_TLSID SDL_TLSCreate ( void  )
extern

◆ SDL_TLSGet()

void * SDL_TLSGet ( SDL_TLSID  id)
extern

◆ SDL_TLSSet()

int SDL_TLSSet ( SDL_TLSID  id,
const void *  value,
void(*)(void *)  destructor 
)
extern

◆ SDL_TLSCleanup()

void SDL_TLSCleanup ( void  )
extern