コード例 #1
0
ファイル: interp_signal.py プロジェクト: sota/pypy-old
 def startup(self, space):
     # this is translated
     if space.config.objspace.usemodules.thread:
         from rpython.rlib import rgil
         rgil.invoke_after_thread_switch(self._after_thread_switch)
コード例 #2
0
 def main(argv):
     rgil.invoke_after_thread_switch(seeme)
     print "Test"  # one release/acquire pair here
     print foo.counter
     print foo.counter
     return 0
コード例 #3
0
ファイル: interp_signal.py プロジェクト: mozillazg/pypy
 def startup(self, space):
     # this is translated
     if space.config.objspace.usemodules.thread:
         from rpython.rlib import rgil
         rgil.invoke_after_thread_switch(self._after_thread_switch)