axl_bool myqtt_cond_wait ( MyQttCond cond,
MyQttMutex mutex 
)

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