Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77330 - trunk/boost/thread/pthread
From: vicente.botet_at_[hidden]
Date: 2012-03-14 02:39:10


Author: viboes
Date: 2012-03-14 02:39:07 EDT (Wed, 14 Mar 2012)
New Revision: 77330
URL: http://svn.boost.org/trac/boost/changeset/77330

Log:
Thread: Use of BOOST_ASSERT_MSG
Text files modified:
   trunk/boost/thread/pthread/mutex.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/boost/thread/pthread/mutex.hpp
==============================================================================
--- trunk/boost/thread/pthread/mutex.hpp (original)
+++ trunk/boost/thread/pthread/mutex.hpp 2012-03-14 02:39:07 EDT (Wed, 14 Mar 2012)
@@ -1,6 +1,7 @@
 #ifndef BOOST_THREAD_PTHREAD_MUTEX_HPP
 #define BOOST_THREAD_PTHREAD_MUTEX_HPP
 // (C) Copyright 2007-8 Anthony Williams
+// (C) Copyright 2011-2012 Vicente J. Botet Escriba
 // Distributed under the Boost Software License, Version 1.0. (See
 // accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
@@ -97,7 +98,7 @@
                 // The following throw_exception has been replaced by an assertion and just return false,
                 // as this is an internal error and the user can do nothing with the exception.
                 //boost::throw_exception(lock_error(res,"boost: mutex try_lock failed in pthread_mutex_trylock"));
- BOOST_ASSERT(false && "boost: mutex try_lock failed in pthread_mutex_trylock");
+ BOOST_ASSERT_MSG(false ,"boost: mutex try_lock failed in pthread_mutex_trylock");
                 return false;
             }
 


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