Function SDL_GetSemaphoreValue

pub unsafe extern "C" fn SDL_GetSemaphoreValue(
    sem: *mut SDL_Semaphore,
) -> u32 
Available on crate feature dep_sdl3 only.
Expand description

Get the current value of a semaphore.

§Parameters

  • sem: the semaphore to query.

§Return value

Returns the current value of the semaphore.

§Availability

This function is available since SDL 3.2.0.