22 #include "SDL_thread.h"
23 #include "../SDL_thread_c.h"
28 #define INVALID_PTHREAD_KEY ((pthread_key_t)-1)
40 pthread_key_t storage;
41 if (pthread_key_create(&storage,
NULL) == 0) {
DECLSPEC void SDLCALL SDL_AtomicUnlock(SDL_SpinLock *lock)
Unlock a spin lock by setting it to 0. Always returns immediately.
SDL_TLSData * SDL_Generic_GetTLSData()
#define SDL_MemoryBarrierRelease()
int SDL_Generic_SetTLSData(SDL_TLSData *storage)
int SDL_SYS_SetTLSData(SDL_TLSData *data)
SDL_TLSData * SDL_SYS_GetTLSData()
#define SDL_MemoryBarrierAcquire()
DECLSPEC void SDLCALL SDL_AtomicLock(SDL_SpinLock *lock)
Lock a spin lock by setting it to a non-zero value.
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
DECLSPEC int SDLCALL SDL_SetError(const char *fmt,...)
static pthread_key_t thread_local_storage
static SDL_bool generic_local_storage
#define INVALID_PTHREAD_KEY