table of contents
other versions
- experimental 3.1.0+ds-1
SDL_CreateTLS(3) | SDL3 FUNCTIONS | SDL_CreateTLS(3) |
NAME¶
SDL_CreateTLS - Create a piece of thread-local storage.
SYNOPSIS¶
#include "SDL3/SDL.h"
SDL_TLSID SDL_CreateTLS(void);
DESCRIPTION¶
This creates an identifier that is globally visible to all threads but refers to data that is thread-specific.
RETURN VALUE¶
Returns the newly created thread local storage identifier or 0 on error.
AVAILABILITY¶
This function is available since SDL 3.0.0.
SEE ALSO¶
SDL 3.1.0 | SDL |