Author: Armin Rigo <[email protected]>
Branch: stm-thread
Changeset: r55031:aa573ab75a8c
Date: 2012-05-11 11:40 +0200
http://bitbucket.org/pypy/pypy/changeset/aa573ab75a8c/
Log: Add an assert.
diff --git a/lib_pypy/transaction.py b/lib_pypy/transaction.py
--- a/lib_pypy/transaction.py
+++ b/lib_pypy/transaction.py
@@ -170,6 +170,7 @@
return next
#
# first check if all N threads are waiting here.
+ assert not self.finished
self.num_waiting_threads += 1
if self.num_waiting_threads == self.num_threads:
# yes, so finished! unlock this to wake up the other
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit