axl_bool valvula_cond_wait ( ValvulaCond cond,
ValvulaMutex mutex 
)

Atomically unlocks the mutex (as per valvula_mutex_unlock) and waits for the condition variable cond to be signaled.

The thread execution is suspended and does not consume any CPU time until the condition variable is signaled. The mutex must be locked by the calling thread on entrance to valvula_cond_wait. Before returning to the calling thread, valvula_cond_wait re-acquires mutex (as per valvula_mutex_lock).

Parameters
condThe conditional variable to oper.
mutexThe mutex that was to associate the condition.
Returns
axl_true if no error was found, otherwise axl_false is returned.