Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53064 - sandbox/stm/boost/stm/detail
From: justin_at_[hidden]
Date: 2009-05-16 21:10:29


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

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

Modified: sandbox/stm/boost/stm/detail/latm_def_tm_impl.hpp
==============================================================================
--- sandbox/stm/boost/stm/detail/latm_def_tm_impl.hpp (original)
+++ sandbox/stm/boost/stm/detail/latm_def_tm_impl.hpp 2009-05-16 21:10:28 EDT (Sat, 16 May 2009)
@@ -79,7 +79,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())
       {
          var_auto_lock<PLOCK> autlock(general_lock(), inflight_lock(), 0);
 
@@ -264,7 +264,7 @@
    {
       latmLockedLocks_.erase(mutex);
 
- if (0 == latmLockedLocks_.size()) unlock_inflight_access();
+ if (latmLockedLocks_.empty()) unlock_inflight_access();
    }
 
    latmLockedLocksOfThreadMap_.erase(mutex);


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