Scroll to navigation

SDL_TLSCreate(3) SDL3 FUNCTIONS SDL_TLSCreate(3)

NAME

SDL_TLSCreate - Create a piece of thread-local storage.

SYNOPSIS

#include "SDL3/SDL.h"
SDL_TLSID SDL_TLSCreate(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_TLSGet(3), SDL_TLSSet(3)

SDL 3.0.0 SDL