[][src]Function sdl2_sys::SDL_SemWaitTimeout

pub unsafe extern "C" fn SDL_SemWaitTimeout(
    sem: *mut SDL_sem,
    ms: Uint32
) -> c_int

Variant of SDL_SemWait() with a timeout in milliseconds.

\return 0 if the wait succeeds, ::SDL_MUTEX_TIMEDOUT if the wait does not succeed in the allotted time, and -1 on error.

\warning On some platforms this function is implemented by looping with a delay of 1 ms, and so should be avoided if possible.