Function sdl2_sys::SDL_TLSCreate

source ·
pub unsafe extern "C" fn SDL_TLSCreate() -> SDL_TLSID
Expand description

Create a piece of thread-local storage.

This creates an identifier that is globally visible to all threads but refers to data that is thread-specific.

\returns the newly created thread local storage identifier or 0 on error.

\since This function is available since SDL 2.0.0.

\sa SDL_TLSGet \sa SDL_TLSSet