zenilib
0.5.3.0
|
#include "SDL_config.h"
#include "SDL_thread.h"
#include "generic/SDL_systhread_c.h"
#include "../SDL_error_c.h"
Go to the source code of this file.
Classes | |
struct | SDL_Thread |
struct | SDL_TLSData |
Macros | |
#define | TLS_ALLOC_CHUNKSIZE 4 |
Functions | |
SDL_TLSData * | SDL_Generic_GetTLSData () |
int | SDL_Generic_SetTLSData (SDL_TLSData *data) |
void | SDL_RunThread (void *data) |
#define TLS_ALLOC_CHUNKSIZE 4 |
Definition at line 71 of file SDL_thread_c.h.
Referenced by SDL_TLSSet().
SDL_TLSData* SDL_Generic_GetTLSData | ( | ) |
Definition at line 122 of file SDL_thread.c.
References NULL, SDL_AtomicLock(), SDL_AtomicUnlock(), SDL_CreateMutex(), SDL_LockMutex(), SDL_MemoryBarrierAcquire, SDL_MemoryBarrierRelease, SDL_ThreadID(), SDL_UnlockMutex(), and thread.
Referenced by SDL_SYS_GetTLSData().
int SDL_Generic_SetTLSData | ( | SDL_TLSData * | data | ) |
Definition at line 161 of file SDL_thread.c.
References NULL, SDL_free(), SDL_generic_TLS, SDL_LockMutex(), SDL_malloc(), SDL_OutOfMemory, SDL_ThreadID(), SDL_UnlockMutex(), and thread.
Referenced by SDL_SYS_SetTLSData().
Definition at line 263 of file SDL_thread.c.
References int, SDL_SemPost(), SDL_SYS_SetupThread(), SDL_ThreadID(), SDL_TLSCleanup(), and SDLCALL.
Referenced by RunThread(), and ThreadEntry().