Boost logo

Boost-Commit :

From: anthony_at_[hidden]
Date: 2008-05-23 11:17:15


Author: anthonyw
Date: 2008-05-23 11:17:14 EDT (Fri, 23 May 2008)
New Revision: 45681
URL: http://svn.boost.org/trac/boost/changeset/45681

Log:
try_lock_wrapper implements operator! in order to try and avoid compiler problems
Text files modified:
   trunk/boost/thread/locks.hpp | 7 ++++++-
   1 files changed, 6 insertions(+), 1 deletions(-)

Modified: trunk/boost/thread/locks.hpp
==============================================================================
--- trunk/boost/thread/locks.hpp (original)
+++ trunk/boost/thread/locks.hpp 2008-05-23 11:17:14 EDT (Fri, 23 May 2008)
@@ -625,9 +625,14 @@
             using base::try_lock;
             using base::unlock;
             using base::owns_lock;
- using base::operator!;
             using base::mutex;
             using base::release;
+
+ bool operator!() const
+ {
+ return !this->owns_lock();
+ }
+
             typedef typename base::bool_type bool_type;
             operator bool_type() const
             {


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