[Boost-bugs] [Boost C++ Libraries] #8901: boost/thread/pthread/recursive_mutex.hpp:

Subject: [Boost-bugs] [Boost C++ Libraries] #8901: boost/thread/pthread/recursive_mutex.hpp:
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-07-24 22:43:14


#8901: boost/thread/pthread/recursive_mutex.hpp:
----------------------------------------------+----------------------
 Reporter: Jeffrey Walton <noloader@…> | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: thread mutex pthread API failure |
----------------------------------------------+----------------------
 boost/thread/pthread/recursive_mutex.hpp ignores some failures from
 pthread_* functions. Functions include pthread_mutex_lock,
 pthread_mutex_unlock and pthread_cond_wait.

 BOOST_VERIFY is used for debugging and diagnostic builds, but no actions
 are taken for failures in release or production builds.

 From line 107:

 #ifdef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
   void lock()
   {
     BOOST_VERIFY(!pthread_mutex_lock(&m));
   }

   void unlock()
   {
     BOOST_VERIFY(!pthread_mutex_unlock(&m));
   }
 ...
 #endif

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