Author: Lars Wassermann <[email protected]>
Branch:
Changeset: r344:6282c37ab8cd
Date: 2013-04-25 17:29 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/6282c37ab8cd/
Log: enable conntect switch when idle also before waiting
diff --git a/spyvm/primitives.py b/spyvm/primitives.py
--- a/spyvm/primitives.py
+++ b/spyvm/primitives.py
@@ -1352,10 +1352,12 @@
@expose_primitive(IDLE_FOR_MICROSECONDS, unwrap_spec=[object, int],
no_result=True, clean_stack=False)
def func(interp, s_frame, w_rcvr, time_mu_s):
import time
+ s_frame.pop()
time_s = time_mu_s / 1000000.0
+ interp.interrupt_check_counter = 0
+ interp.quick_check_for_interrupt(s_frame, dec=0)
time.sleep(time_s)
interp.interrupt_check_counter = 0
- s_frame.pop()
interp.quick_check_for_interrupt(s_frame, dec=0)
@expose_primitive(FORCE_DISPLAY_UPDATE, unwrap_spec=[object])
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit