axl_bool vortex_cond_wait ( VortexCond cond,
VortexMutex mutex 
)

Atomically unlocks the mutex (as per vortex_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 vortex_cond_wait. Before returning to the calling thread, vortex_cond_wait re-acquires mutex (as per vortex_mutex_lock).

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