Function sdl2_sys::SDL_SemPost
source · pub unsafe extern "C" fn SDL_SemPost(sem: *mut SDL_sem) -> c_int
Expand description
Atomically increment a semaphore’s value and wake waiting threads.
\param sem the semaphore to increment \returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
\since This function is available since SDL 2.0.0.
\sa SDL_CreateSemaphore \sa SDL_DestroySemaphore \sa SDL_SemTryWait \sa SDL_SemValue \sa SDL_SemWait \sa SDL_SemWaitTimeout