Author: Armin Rigo <[email protected]>
Branch: stm-thread
Changeset: r55021:688b9948fdd8
Date: 2012-05-11 00:35 +0200
http://bitbucket.org/pypy/pypy/changeset/688b9948fdd8/
Log: Fix. No clue how to write a test :-(
diff --git a/lib_pypy/transaction.py b/lib_pypy/transaction.py
--- a/lib_pypy/transaction.py
+++ b/lib_pypy/transaction.py
@@ -111,6 +111,7 @@
# now wait. When we manage to acquire the following lock, then
# we are finished.
self.lock_if_released_then_finished.acquire()
+ self.lock_mutex.acquire() # wait until the threads are really done
def teardown(self):
self.in_transaction = False
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit