Boost logo

Boost-Commit :

From: anthony_at_[hidden]
Date: 2008-05-29 11:16:04


Author: anthonyw
Date: 2008-05-29 11:16:04 EDT (Thu, 29 May 2008)
New Revision: 45908
URL: http://svn.boost.org/trac/boost/changeset/45908

Log:
Use wrapper functions in try_lock_wrapper rather than using declarations, as the latter confuse some compilers
Text files modified:
   trunk/boost/thread/locks.hpp | 31 ++++++++++++++++++++++++-------
   1 files changed, 24 insertions(+), 7 deletions(-)

Modified: trunk/boost/thread/locks.hpp
==============================================================================
--- trunk/boost/thread/locks.hpp (original)
+++ trunk/boost/thread/locks.hpp 2008-05-29 11:16:04 EDT (Thu, 29 May 2008)
@@ -688,13 +688,30 @@
                 base::swap(*other);
             }
 
- using base::lock;
- using base::try_lock;
- using base::unlock;
- using base::owns_lock;
- using base::mutex;
- using base::release;
-
+ void lock()
+ {
+ base::lock();
+ }
+ bool try_lock()
+ {
+ return base::try_lock();
+ }
+ void unlock()
+ {
+ base::unlock();
+ }
+ bool owns_lock() const
+ {
+ return base::owns_lock();
+ }
+ Mutex* mutex() const
+ {
+ return base::mutex();
+ }
+ Mutex* release()
+ {
+ return base::release();
+ }
             bool operator!() const
             {
                 return !this->owns_lock();


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