[pypy-svn] r33263 - pypy/dist/pypy/objspace/cclp
auc at codespeak.net
auc at codespeak.net
Fri Oct 13 17:02:21 CEST 2006
Author: auc
Date: Fri Oct 13 17:02:19 2006
New Revision: 33263
Modified:
pypy/dist/pypy/objspace/cclp/scheduler.py
pypy/dist/pypy/objspace/cclp/space.py
Log:
cover another corner case
Modified: pypy/dist/pypy/objspace/cclp/scheduler.py
==============================================================================
--- pypy/dist/pypy/objspace/cclp/scheduler.py (original)
+++ pypy/dist/pypy/objspace/cclp/scheduler.py Fri Oct 13 17:02:19 2006
@@ -262,9 +262,12 @@
def is_blocked(self):
return self.thread_count == self.blocked_count
+ def is_failed(self):
+ return False
+
def is_stable(self):
- # first approx.
- return self.is_blocked()
+ # second approx.
+ return self.is_blocked() or self.is_failed()
def is_runnable(self):
if not self.is_stable():
Modified: pypy/dist/pypy/objspace/cclp/space.py
==============================================================================
--- pypy/dist/pypy/objspace/cclp/space.py (original)
+++ pypy/dist/pypy/objspace/cclp/space.py Fri Oct 13 17:02:19 2006
@@ -225,6 +225,9 @@
interp_bind(self._finished, self.space.w_True)
interp_bind(self._choice, self.space.newint(0))
+ def is_failed(self):
+ return self._failed
+
def w_merge(self):
# let's bind the solution variables
sol = self._solution.w_bound_to
More information about the Pypy-commit
mailing list