next up previous contents index
Next: 4.11.2 signal: Signal a Up: 4.11 oskit_condvar: Condition variable Previous: 4.11 oskit_condvar: Condition variable

4.11.1 wait: Wait on a condition variable

 

SYNOPSIS

#include <oskit/com/condvar.h>

OSKIT_COMDECL oskit_condvar_wait(oskit_condvar_t *condvar, oskit_lock_t *lock);

DESCRIPTION

This method causes the current thread is to wait until the condition variable is signaled or broadcast. The oskit_lock object must be locked when called. The lock is released prior to waiting, and reacquired before returning.

PARAMETERS

condvar
The oskit_condvar COM interface for the condition variable.
lock
The oskit_lock COM interface for the lock.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.



University of Utah Flux Research Group