Function SDL_AtomicDecRef

pub unsafe fn SDL_AtomicDecRef(a: *mut SDL_AtomicInt) -> bool
Available on crate feature dep_sdl3 only.
Expand description

Decrement an atomic variable used as a reference count.

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

§Parameters

§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