|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r56287 - sandbox/stm/libs/stm/src
From: justin_at_[hidden]
Date: 2009-09-18 02:00:37
Author: jgottschlich
Date: 2009-09-18 02:00:37 EDT (Fri, 18 Sep 2009)
New Revision: 56287
URL: http://svn.boost.org/trac/boost/changeset/56287
Log:
Corrected the API call to the right mutex acquire / release for initialize_thread.
Text files modified:
sandbox/stm/libs/stm/src/transaction.cpp | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
Modified: sandbox/stm/libs/stm/src/transaction.cpp
==============================================================================
--- sandbox/stm/libs/stm/src/transaction.cpp (original)
+++ sandbox/stm/libs/stm/src/transaction.cpp 2009-09-18 02:00:37 EDT (Fri, 18 Sep 2009)
@@ -175,7 +175,7 @@
// DO NOT REMOVE LOCK_ALL_MUTEXES / UNLOCK_ALL_MUTEXES!!
//
//--------------------------------------------------------------------------
- lock_all_mutexes();
+ lock_all_mutexes_but_this(THREAD_ID);
size_t threadId = THREAD_ID;
@@ -364,10 +364,7 @@
// DO NOT REMOVE LOCK_ALL_MUTEXES / UNLOCK_ALL_MUTEXES!!
//
//--------------------------------------------------------------------------
- // this will unlock the mutex of the thread that was just added, but it
- // doesn't matter because that mutex will already be unlocked
- //--------------------------------------------------------------------------
- unlock_all_mutexes();
+ unlock_all_mutexes_but_this(THREAD_ID);
//--------------------------------------------------------------------------
unlock_general_access();
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