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)
def main(argv): rgil.invoke_after_thread_switch(seeme) print "Test" # one release/acquire pair here print foo.counter print foo.counter return 0