Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53063 - sandbox/stm/boost/stm/detail
From: justin_at_[hidden]
Date: 2009-05-16 21:09:32


Author: jgottschlich
Date: 2009-05-16 21:09:31 EDT (Sat, 16 May 2009)
New Revision: 53063
URL: http://svn.boost.org/trac/boost/changeset/53063

Log:
improved STL interface usage.
Text files modified:
   sandbox/stm/boost/stm/detail/latm_def_full_impl.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: sandbox/stm/boost/stm/detail/latm_def_full_impl.hpp
==============================================================================
--- sandbox/stm/boost/stm/detail/latm_def_full_impl.hpp (original)
+++ sandbox/stm/boost/stm/detail/latm_def_full_impl.hpp 2009-05-16 21:09:31 EDT (Sat, 16 May 2009)
@@ -72,7 +72,7 @@
    // if the lock-aware tm lock set is empty, lock the in-flight trans mutex
    // so we can abort all the in-flight transactions
    //--------------------------------------------------------------------------
- if (0 == latmLockedLocks_.size())
+ if (latmLockedLocks_.empty())
    {
       lock_general_access();
       lock_inflight_access();
@@ -256,7 +256,7 @@
 
    latmLockedLocks_.erase(mutex);
 
- if (0 == latmLockedLocks_.size()) unlock_inflight_access();
+ if (latmLockedLocks_.empty()) unlock_inflight_access();
 
    latmLockedLocksOfThreadMap_.erase(mutex);
    unlock(&latmMutex_);


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