Subject: [Boost-bugs] [Boost C++ Libraries] #8904: boost/smart_ptr/detail/atomic_count_pthreads.hpp: Ignores all failures from pthread_* functions
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-07-24 23:37:40
#8904: boost/smart_ptr/detail/atomic_count_pthreads.hpp: Ignores all failures from
pthread_* functions
-------------------------------------------------+-----------------------
Reporter: Jeffrey Walton <noloader@â¦> | Owner: pdimov
Type: Bugs | Status: new
Milestone: To Be Determined | Component: smart_ptr
Version: Boost 1.54.0 | Severity: Problem
Keywords: smart_ptr pthread mutex API failure |
-------------------------------------------------+-----------------------
boost/smart_ptr/detail/atomic_count_pthreads.hpp ignores all failures from
pthread_* functions. Functions include pthread_mutex_init,
pthread_mutex_lock, pthread_mutex_unlock and pthread_mutex_destroy.
Perhaps it would be a good idea to use boost/thread/pthread/mutex.hpp. It
appears to have more stability and throws lock exceptions where
appropriate.
Use of BOOST_ASSERT would also be a good idea so developers can learn the
point of first failure quickly without resorting to debugging.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8904> 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:13 UTC