Boost C++ Libraries: Ticket #12102: condition_variable_fwd.hpp fails to compile when BOOST_THREAD_PROVIDES_INTERRUPTIONS is disabled https://svn.boost.org/trac10/ticket/12102 <p> condition_variable_fwd.hpp fails to compile when BOOST_THREAD_PROVIDES_INTERRUPTIONS is disabled because of an undefined variable. </p> <p> Code in question: #if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS </p> <blockquote> <p> int res=pthread_mutex_init(&amp;internal_mutex,NULL); if(res) { </p> <blockquote> <p> boost::throw_exception(thread_resource_error(res, "boost::condition_variable::condition_variable() constructor failed in pthread_mutex_init")); </p> </blockquote> <p> } </p> </blockquote> <p> #endif </p> <blockquote> <p> res = detail::monotonic_pthread_cond_init(cond); if (res) { </p> </blockquote> <p> #if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS </p> <blockquote> <p> BOOST_VERIFY(!pthread_mutex_destroy(&amp;internal_mutex)); </p> </blockquote> <p> #endif </p> <blockquote> <p> boost::throw_exception(thread_resource_error(res, "boost::condition_variable::condition_variable() constructor failed in detail::monotonic_pthread_cond_init")); </p> </blockquote> <blockquote> <p> } </p> </blockquote> <blockquote> <p> } </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12102 Trac 1.4.3 viboes Tue, 09 Aug 2016 00:26:11 GMT owner, status, milestone changed https://svn.boost.org/trac10/ticket/12102#comment:1 https://svn.boost.org/trac10/ticket/12102#comment:1 <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.62.0</span> </li> </ul> Ticket viboes Fri, 19 Aug 2016 21:13:38 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/12102#comment:2 https://svn.boost.org/trac10/ticket/12102#comment:2 <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