Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85211 - in branches/release/boost/signals2: . detail
From: fmhess_at_[hidden]
Date: 2013-08-04 18:10:03


Author: fmhess
Date: 2013-08-04 18:10:03 EDT (Sun, 04 Aug 2013)
New Revision: 85211
URL: http://svn.boost.org/trac/boost/changeset/85211

Log:
Merged from trunk. Closes #8916

Properties modified:
   branches/release/boost/signals2/ (props changed)
Text files modified:
   branches/release/boost/signals2/detail/lwm_pthreads.hpp | 12 ++++++------
   1 files changed, 6 insertions(+), 6 deletions(-)

Modified: branches/release/boost/signals2/detail/lwm_pthreads.hpp
==============================================================================
--- branches/release/boost/signals2/detail/lwm_pthreads.hpp Sun Aug 4 17:37:45 2013 (r85210)
+++ branches/release/boost/signals2/detail/lwm_pthreads.hpp 2013-08-04 18:10:03 EDT (Sun, 04 Aug 2013) (r85211)
@@ -18,7 +18,7 @@
 # pragma once
 #endif
 
-
+#include <boost/assert.hpp>
 #include <pthread.h>
 
 namespace boost
@@ -44,20 +44,20 @@
 // HPUX 10.20 / DCE has a nonstandard pthread_mutex_init
 
 #if defined(__hpux) && defined(_DECTHREADS_)
- pthread_mutex_init(&m_, pthread_mutexattr_default);
+ BOOST_VERIFY(pthread_mutex_init(&m_, pthread_mutexattr_default) == 0);
 #else
- pthread_mutex_init(&m_, 0);
+ BOOST_VERIFY(pthread_mutex_init(&m_, 0) == 0);
 #endif
     }
 
     ~mutex()
     {
- pthread_mutex_destroy(&m_);
+ BOOST_VERIFY(pthread_mutex_destroy(&m_) == 0);
     }
 
     void lock()
     {
- pthread_mutex_lock(&m_);
+ BOOST_VERIFY(pthread_mutex_lock(&m_) == 0);
     }
 
     bool try_lock()
@@ -67,7 +67,7 @@
 
     void unlock()
     {
- pthread_mutex_unlock(&m_);
+ BOOST_VERIFY(pthread_mutex_unlock(&m_) == 0);
     }
 };
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk