[Boost-bugs] [Boost C++ Libraries] #12102: condition_variable_fwd.hpp fails to compile when BOOST_THREAD_PROVIDES_INTERRUPTIONS is disabled

Subject: [Boost-bugs] [Boost C++ Libraries] #12102: condition_variable_fwd.hpp fails to compile when BOOST_THREAD_PROVIDES_INTERRUPTIONS is disabled
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-03-30 21:33:08


#12102: condition_variable_fwd.hpp fails to compile when
BOOST_THREAD_PROVIDES_INTERRUPTIONS is disabled
------------------------------+------------------------
 Reporter: mark.benvenuto@… | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.60.0 | Severity: Regression
 Keywords: |
------------------------------+------------------------
 condition_variable_fwd.hpp fails to compile when
 BOOST_THREAD_PROVIDES_INTERRUPTIONS is disabled because of an undefined
 variable.

 Code in question:
 #if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS
             int res=pthread_mutex_init(&internal_mutex,NULL);
             if(res)
             {
                 boost::throw_exception(thread_resource_error(res,
 "boost::condition_variable::condition_variable() constructor failed in
 pthread_mutex_init"));
             }
 #endif

             res = detail::monotonic_pthread_cond_init(cond);
             if (res)
             {
 #if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS
                 BOOST_VERIFY(!pthread_mutex_destroy(&internal_mutex));
 #endif
                 boost::throw_exception(thread_resource_error(res,
 "boost::condition_variable::condition_variable() constructor failed in
 detail::monotonic_pthread_cond_init"));
             }
         }

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12102>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC