Function SDL_AtomicIncRef
pub unsafe fn SDL_AtomicIncRef(a: *mut SDL_AtomicInt) -> i32
Available on crate feature
dep_sdl3
only.Expand description
Increment 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
a
: a pointer to anSDL_AtomicInt
to increment.
§Return value
Returns the previous value of the atomic variable.
§Thread safety
It is safe to call this macro from any thread.
§Availability
This macro is available since SDL 3.2.0.