logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_SetAtomicPointer - Set a pointer to a value atomically.

Availability

       This function is available since SDL 3.2.0.

Description

Note:Ifyoudon'tknowwhatthisfunctionisfor,youshouldn'tuseit!

Function Parameters

a      a pointer to a pointer.

       v      the desired pointer value.

Name

       SDL_SetAtomicPointer - Set a pointer to a value atomically.

Return Value

       Returns the previous value of the pointer.

See Also

SDL_CompareAndSwapAtomicPointer(3), SDL_GetAtomicPointer(3)

Simple Directmedia Layer                           SDL 3.2.20                            SDL_SetAtomicPointer(3)

Synopsis

#include<SDL3/SDL_atomic.h>void*SDL_SetAtomicPointer(void**a,void*v);

Thread Safety

       It is safe to call this function from any thread.

See Also