[][src]Function sdl2_sys::SDL_CondWait

pub unsafe extern "C" fn SDL_CondWait(
    cond: *mut SDL_cond,
    mutex: *mut SDL_mutex
) -> c_int

Wait on the condition variable, unlocking the provided mutex.

\warning The mutex must be locked before entering this function!

The mutex is re-locked once the condition variable is signaled.

\return 0 when it is signaled, or -1 on error.