Provided by: libsdl3-doc_3.2.26+ds-2_all bug

NAME

       SDL_AtomicDecRef - Decrement an atomic variable used as a reference count.

SYNOPSIS

       #include <SDL3/SDL_atomic.h>

       #define SDL_AtomicDecRef(a)    (SDL_AddAtomicInt(a, -1) == 1)

DESCRIPTION

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

MACRO PARAMETERS

       a      a pointer to an SDL_AtomicInt to decrement.

RETURN VALUE

       Returns true if the variable reached zero after decrementing, false otherwise.

THREAD SAFETY

       It is safe to call this macro from any thread.

AVAILABILITY

       This macro is available since SDL 3.2.0.

SEE ALSO

       SDL_AtomicIncRef(3)

Simple Directmedia Layer                           SDL 3.2.26                                SDL_AtomicDecRef(3)