Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59813 - sandbox/stm/boost/stm/detail
From: justin_at_[hidden]
Date: 2010-02-21 12:07:30


Author: jgottschlich
Date: 2010-02-21 12:07:29 EST (Sun, 21 Feb 2010)
New Revision: 59813
URL: http://svn.boost.org/trac/boost/changeset/59813

Log:
blah
Text files modified:
   sandbox/stm/boost/stm/detail/transaction_impl.hpp | 27 ++++++++++++++++++++++++++-
   1 files changed, 26 insertions(+), 1 deletions(-)

Modified: sandbox/stm/boost/stm/detail/transaction_impl.hpp
==============================================================================
--- sandbox/stm/boost/stm/detail/transaction_impl.hpp (original)
+++ sandbox/stm/boost/stm/detail/transaction_impl.hpp 2010-02-21 12:07:29 EST (Sun, 21 Feb 2010)
@@ -1322,7 +1322,7 @@
    wbloom().clear();
 #endif
 
- if (alreadyRemovedFromInFlight)
+ if (!alreadyRemovedFromInFlight)
    {
       lock_inflight_access();
       // if I'm the last transaction of this thread, reset abort to false
@@ -1871,6 +1871,31 @@
       // so exit, since no other deletions will succeed
       else break;
    }
+
+//----------------------------------------------------------------------------
+// TODO: Vicente, do you know what the below code is used for?
+//----------------------------------------------------------------------------
+#if 0
+
+ for (UnsafeDeletionBuffer::iterator i = unsafeDeletionBuffer_.begin();
+ i != unsafeDeletionBuffer_.end();)
+ {
+ if (earliestInFlightTx > i->first)
+ {
+ for (UnsafeMemoryContainerList::iterator j = i->second.begin(); j != i->second.end(); ++j)
+ {
+ free(j);
+ }
+ unsafeDeletionBuffer_.erase(i);
+ i = unsafeDeletionBuffer_.begin();
+ }
+ // getting to the else means there is an inflight
+ // tx that is older than the first entry to delete,
+ // so exit, since no other deletions will succeed
+ else break;
+ }
+#endif
+
 }
 
 //----------------------------------------------------------------------------


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