Boost C++ Libraries: Ticket #10529: The pthread/condition_variable_any constructor reports incorrect error code for pthread_cond_init https://svn.boost.org/trac10/ticket/10529 <p> Constructor of condition_variable_any in pthread implementation reports error in the following way: </p> <pre class="wiki"> int const res2=pthread_cond_init(&amp;cond,NULL); if(res2) { BOOST_VERIFY(!pthread_mutex_destroy(&amp;internal_mutex)); boost::throw_exception(thread_resource_error(res, "boost::condition_variable_any::condition_variable_any() failed in pthread_cond_init")); } </pre><p> The thread_resource_error shall use res2 instead of res. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10529 Trac 1.4.3 Boguslaw Sluka <zen77@…> Tue, 23 Sep 2014 12:47:16 GMT attachment set https://svn.boost.org/trac10/ticket/10529 https://svn.boost.org/trac10/ticket/10529 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">patch.txt</span> </li> </ul> Ticket Boguslaw Sluka <zen77@…> Tue, 23 Sep 2014 12:51:42 GMT <link>https://svn.boost.org/trac10/ticket/10529#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10529#comment:1</guid> <description> <p> boost\thread\pthread\condition_variable.hpp </p> </description> <category>Ticket</category> </item> <item> <author>Boguslaw Sluka <zen77@…></author> <pubDate>Tue, 23 Sep 2014 13:33:16 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/10529#comment:2 https://svn.boost.org/trac10/ticket/10529#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">Anthony Williams</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">thread</span> </li> </ul> Ticket viboes Tue, 23 Sep 2014 21:25:24 GMT owner, status, milestone changed https://svn.boost.org/trac10/ticket/10529#comment:3 https://svn.boost.org/trac10/ticket/10529#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.57.0</span> </li> </ul> <p> Thanks for catching this. </p> Ticket viboes Fri, 26 Sep 2014 06:06:50 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10529#comment:4 https://svn.boost.org/trac10/ticket/10529#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket