Boost C++ Libraries: Ticket #1804: Check for EBUSY instead of ETIMEDOUT in thread/pthread/mutex.hpp https://svn.boost.org/trac10/ticket/1804 <p> I believe this code: </p> <p> bool timed_lock(system_time const &amp; abs_time) { </p> <blockquote> <p> struct timespec const timeout=detail::get_timespec(abs_time); int const res=pthread_mutex_timedlock(&amp;m,&amp;timeout); </p> <table class="wiki"> <tr>BOOST_ASSERT(!res <td> res==EBUSY); </td></tr></table> <p> return !res; </p> </blockquote> <p> } </p> <p> should test ETIMEDOUT not EBUSY. </p> <p> I couldn't find any other tickets for this and it appears to still be this way in the the svn trunk. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1804 Trac 1.4.3 Anthony Williams Thu, 10 Apr 2008 13:27:56 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1804#comment:1 https://svn.boost.org/trac10/ticket/1804#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket