Decrement an atomic variable used as a reference count.
Defined in <SDL3/SDL_atomic.h>
#define SDL_AtomicDecRef(a) (SDL_AddAtomicInt(a, -1) == 1)
a | a pointer to an SDL_AtomicInt to increment. |
Returns true if the variable reached zero after decrementing, false otherwise.
Note: If you don't know what this macro is for, you shouldn't use it!
It is safe to call this macro from any thread.
This macro is available since SDL 3.1.3.