SDL_AtomicDecRef

Use this function to decrement an atomic variable used as a reference count.

Syntax

SDL_bool SDL_AtomicDecRef(SDL_atomic_t* a)

Function Parameters

a

a pointer to an SDL_atomic_t variable to be modified

Return Value

Returns SDL_TRUE if the variable reached zero after decrementing, SDL_FALSE otherwise.

SDL_AtomicAdd
SDL_AtomicIncRef

CategoryAPI, CategoryAtomic