[pypy-svn] pypy default: remove XXX and call check_signals

bivab commits-noreply at bitbucket.org
Sat Jan 22 12:10:44 CET 2011


Author: David Schneider <david.schneider at picle.org>
Branch: 
Changeset: r41207:1700e11dad97
Date: 2011-01-22 11:31 +0100
http://bitbucket.org/pypy/pypy/changeset/1700e11dad97/

Log:	remove XXX and call check_signals

diff --git a/pypy/module/_multiprocessing/interp_semaphore.py b/pypy/module/_multiprocessing/interp_semaphore.py
--- a/pypy/module/_multiprocessing/interp_semaphore.py
+++ b/pypy/module/_multiprocessing/interp_semaphore.py
@@ -243,7 +243,7 @@
             time.sleep(0.001)
 
             # if this is main thread let KeyboardInterrupt be raised
-            # XXX PyErr_CheckSignals()
+            _check_signals(self.space)
 
             # recalculate timeout
             if msecs != rwin32.INFINITE:
@@ -327,7 +327,7 @@
                     elif e.errno in (errno.EAGAIN, errno.ETIMEDOUT):
                         return False
                     raise
-                # XXX PyErr_CheckSignals()
+                _check_signals(space)
 
                 return True
         finally:
@@ -520,3 +520,6 @@
     __exit__=interp2app(W_SemLock.exit),
     SEM_VALUE_MAX=SEM_VALUE_MAX,
     )
+
+def _check_signals(space):
+    space.getexecutioncontext().checksignals()


More information about the Pypy-commit mailing list