zenilib
0.5.3.0
|
Go to the source code of this file.
Macros | |
#define | INVALID_PTHREAD_KEY ((pthread_key_t)-1) |
Functions | |
SDL_TLSData * | SDL_SYS_GetTLSData () |
int | SDL_SYS_SetTLSData (SDL_TLSData *data) |
Variables | |
static SDL_bool | generic_local_storage = SDL_FALSE |
static pthread_key_t | thread_local_storage = INVALID_PTHREAD_KEY |
#define INVALID_PTHREAD_KEY ((pthread_key_t)-1) |
Definition at line 28 of file SDL_systls.c.
Referenced by SDL_SYS_GetTLSData().
SDL_TLSData* SDL_SYS_GetTLSData | ( | ) |
Definition at line 34 of file SDL_systls.c.
References generic_local_storage, INVALID_PTHREAD_KEY, lock, NULL, SDL_AtomicLock(), SDL_AtomicUnlock(), SDL_Generic_GetTLSData(), SDL_MemoryBarrierAcquire, SDL_MemoryBarrierRelease, SDL_TRUE, and thread_local_storage.
int SDL_SYS_SetTLSData | ( | SDL_TLSData * | data | ) |
Definition at line 58 of file SDL_systls.c.
References generic_local_storage, SDL_Generic_SetTLSData(), SDL_SetError(), and thread_local_storage.
Definition at line 31 of file SDL_systls.c.
Referenced by SDL_SYS_GetTLSData(), and SDL_SYS_SetTLSData().
|
static |
Definition at line 30 of file SDL_systls.c.
Referenced by SDL_SYS_GetTLSData(), and SDL_SYS_SetTLSData().