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_GetAtomicInt - Get the value of an atomic variable.

Availability

       This function is available since SDL 3.2.0.

Description

Note:Ifyoudon'tknowwhatthisfunctionisfor,youshouldn'tuse it!

Function Parameters

a      a pointer to an SDL_AtomicInt
               variable.

Header File

       Defined in SDL3/SDL_atomic.h

Name

       SDL_GetAtomicInt - Get the value of an atomic variable.

Return Value

       Returns the current value of an atomic variable.

See Also

(3), SDL_SetAtomicInt(3)

Simple Directmedia Layer                           SDL 3.2.10                                SDL_GetAtomicInt(3)

Synopsis

#include"SDL3/SDL.h"intSDL_GetAtomicInt(SDL_AtomicInt*a);

Thread Safety

       It is safe to call this function from any thread.

See Also