Boost C++ Libraries: Ticket #6674: shared_mutex: try_lock_upgrade_until doesn't works https://svn.boost.org/trac10/ticket/6674 <p> There is a bug on the code of shared_mutex::try_lock_upgrade_until. The following change fixes it. </p> <pre class="wiki"> template &lt;class Clock, class Duration&gt; bool try_lock_upgrade_until(const chrono::time_point&lt;Clock, Duration&gt;&amp; abs_time) boost::mutex::scoped_lock lk(state_change); while(state.exclusive || state.exclusive_waiting_blocked || state.upgrade) { - if(cv_status::no_timeout == shared_cond.wait_until(lk,abs_time)) + if(cv_status::timeout == shared_cond.wait_until(lk,abs_time)) { </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6674 Trac 1.4.3 viboes Sat, 10 Mar 2012 17:01:29 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6674#comment:1 https://svn.boost.org/trac10/ticket/6674#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> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/77290" title="Thread: Fix error on pthread/shared_mutex.hpp try_lock_xxx_for, which ...">[77290]</a>) Thread: Fix error on pthread/shared_mutex.hpp try_lock_xxx_for, which should use the try_lock_xxx_until+fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6674" title="#6674: Bugs: shared_mutex: try_lock_upgrade_until doesn't works (closed: fixed)">#6674</a> </p> Ticket