SDL_SetAtomicPointer

Set a pointer to a value atomically.

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

extern (C) nothrow @nogc extern
void*
SDL_SetAtomicPointer
(
void** a
,
void* v
)

Parameters

a void**

a pointer to a pointer.

v void*

the desired pointer value.

Return Value

Type: void*

the previous value of the pointer.

See Also

SDL_CompareAndSwapAtomicPointer SDL_GetAtomicPointer

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

Meta

History

Available since SDL 3.2.0.