SDL Wiki

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


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.