[Boost-bugs] [Boost C++ Libraries] #2681: lwm_pthread fails to catch initialization error

Subject: [Boost-bugs] [Boost C++ Libraries] #2681: lwm_pthread fails to catch initialization error
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-01-26 16:16:32


#2681: lwm_pthread fails to catch initialization error
--------------------------------------------------------------------+-------
 Reporter: Olivier Langlois <olivier.langlois_at_[hidden]> | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: Boost 1.38.0 | Component: threads
  Version: Boost 1.37.0 | Severity: Problem
 Keywords: |
--------------------------------------------------------------------+-------
 pthread_mutex_init() return value is not checked and if the mutex creation
 fails, the next pthread_mutex_lock() call result is undefined on some
 platforms.

 I think that it would be appropriate to throw an exception from the
 lightweight_mutex constructor if pthread_mutex_init fails.

 The problem is in

 boost/detail/lwm_pthreads.hpp

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