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_GetAtomicPointer - Get the value of a pointer 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.

Name

       SDL_GetAtomicPointer - Get the value of a pointer atomically.

Return Value

       Returns the current value of a pointer.

See Also

SDL_CompareAndSwapAtomicPointer(3), SDL_SetAtomicPointer(3)

Simple Directmedia Layer                           SDL 3.2.20                            SDL_GetAtomicPointer(3)

Synopsis

#include<SDL3/SDL_atomic.h>void*SDL_GetAtomicPointer(void**a);

Thread Safety

       It is safe to call this function from any thread.

See Also