<div dir="ltr"><div class="gmail_extra">Hi,</div><div class="gmail_extra">Looking at sasl_set_mutex function shown in cyrus-sasl-2.1.26/utils/testsuite.c :</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">int my_mutex_lock(my_mutex_t *m)</div><div class="gmail_extra">{</div><div class="gmail_extra"> if (m->val != 0)</div><div class="gmail_extra"> {</div><div class="gmail_extra"> fatal("Trying to lock a mutex already locked [single-threaded app]");</div><div class="gmail_extra"> }</div><div class="gmail_extra"><br></div><div class="gmail_extra">Wouldn't calling <span class="gmail-s1" style="font-family:monaco;font-size:11px">pthread_mutex_lock</span><span style="font-family:monaco;font-size:11px">() better handle concurrent invocations of the mutex lock function ?</span></div><div class="gmail_extra"><span style="font-family:monaco;font-size:11px"><br></span></div><div class="gmail_extra"><span style="font-family:monaco;font-size:11px">Thanks</span></div>
</div></div>