|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r59672 - sandbox/stm/branches/vbe/boost/synchro/pthread
From: vicente.botet_at_[hidden]
Date: 2010-02-13 10:25:20
Author: viboes
Date: 2010-02-13 10:25:20 EST (Sat, 13 Feb 2010)
New Revision: 59672
URL: http://svn.boost.org/trac/boost/changeset/59672
Log:
Boost.STM/vbe:
* Remove warning when compiling release variant
Text files modified:
sandbox/stm/branches/vbe/boost/synchro/pthread/mutex.hpp | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
Modified: sandbox/stm/branches/vbe/boost/synchro/pthread/mutex.hpp
==============================================================================
--- sandbox/stm/branches/vbe/boost/synchro/pthread/mutex.hpp (original)
+++ sandbox/stm/branches/vbe/boost/synchro/pthread/mutex.hpp 2010-02-13 10:25:20 EST (Sat, 13 Feb 2010)
@@ -41,15 +41,13 @@
template<>
inline void lock<pthread_mutex_t>(pthread_mutex_t& lockable) {
- int const res = pthread_mutex_lock(&lockable);
- BOOST_STM_VERIFY(res==0&&"synchro::lock<pthread_mutex_t>");
+ BOOST_STM_VERIFY(pthread_mutex_lock(&lockable)==0&&"synchro::lock<pthread_mutex_t>");
//if (res!=0) throw lock_error();
}
template<>
inline void unlock<pthread_mutex_t>(pthread_mutex_t& lockable) {
- int const res= pthread_mutex_unlock(&lockable);
- BOOST_STM_VERIFY(res==0&&"synchro::unlock<pthread_mutex_t>");
+ BOOST_STM_VERIFY(pthread_mutex_unlock(&lockable)==0&&"synchro::unlock<pthread_mutex_t>");
//if (res!=0) throw lock_error();
}
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