Example #1
0
 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)
Example #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
Example #3
0
 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)