by the calling thread. The function will atomically release <code>mutex</code> and block on <code>cond</code>. The function will return when <code>cond</code> is &quot;signalled&quot;, acquiring the lock on the mutex in the process.</p>
<p>Example of proper use:</p>
<pre><code>al_lock_mutex(mutex);
while (something_not_true) {
    al_wait_cond(cond, mutex);
}
do_something();
al_unlock_mutex(mutex);
</code></pre>
<p>The mutex should be locked before checking the condition, and should be rechecked <a href="th