SDL_SetAtomicU32

Set an atomic variable to a value.

This function also acts as a full memory barrier.

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

extern (C) nothrow @nogc extern
SDL_SetAtomicU32

Parameters

a SDL_AtomicU32*

a pointer to an SDL_AtomicU32 variable to be modified.

v Uint32

the desired value.

Return Value

Type: Uint32

the previous value of the atomic variable.

See Also

SDL_GetAtomicU32

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

Meta

History

Available since SDL 3.2.0.