SDL_GetAtomicInt

Get the value of an atomic variable.

***Note: If you don't know what this function is for, you shouldn't use it!***

extern (C) nothrow @nogc extern
int
SDL_GetAtomicInt

Parameters

a SDL_AtomicInt*

a pointer to an SDL_AtomicInt variable.

Return Value

Type: int

the current value of an atomic variable.

See Also

SDL_SetAtomicInt

Threadsafety: It is safe to call this function from any thread.

Meta

History

Available since SDL 3.2.0.