The condvar_wait function is a critical-section function that blocks on a given condition variable. Use this function to wait for a critical section specified by a condition variable argument to become available. The calling thread is blocked until another thread calls condvar_notify with the same condition variable argument. The caller must have entered the critical section associated with this condition variable before calling condvar_wait.
void condvar_wait(CONDVAR cv);
void
CONDVAR cv is a condition variable.
condvar_init, condvar_terminate, condvar_notify, crit_init, crit_enter, crit_exit, crit_terminate