[Boost-bugs] [Boost C++ Libraries] #10529: The pthread/condition_variable_any constructor reports incorrect error code for pthread_cond_init

Subject: [Boost-bugs] [Boost C++ Libraries] #10529: The pthread/condition_variable_any constructor reports incorrect error code for pthread_cond_init
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-09-23 12:47:05


#10529: The pthread/condition_variable_any constructor reports incorrect error code
for pthread_cond_init
--------------------------------------+------------------------------
 Reporter: Boguslaw Sluka <zen77@…> | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.56.0
 Severity: Problem | Keywords:
--------------------------------------+------------------------------
 Constructor of condition_variable_any in pthread implementation reports
 error in the following way:

 {{{

  int const res2=pthread_cond_init(&cond,NULL);
             if(res2)
             {
                 BOOST_VERIFY(!pthread_mutex_destroy(&internal_mutex));
                 boost::throw_exception(thread_resource_error(res,
 "boost::condition_variable_any::condition_variable_any() failed in
 pthread_cond_init"));
             }
 }}}


 The thread_resource_error shall use res2 instead of res.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10529>
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:17 UTC