[−][src]Function sdl2_sys::SDL_CondWaitTimeout
pub unsafe extern "C" fn SDL_CondWaitTimeout(
cond: *mut SDL_cond,
mutex: *mut SDL_mutex,
ms: Uint32
) -> c_int
Waits for at most \c ms milliseconds, and returns 0 if the condition variable is signaled, ::SDL_MUTEX_TIMEDOUT if the condition is not signaled 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.