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

§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.

§See also