def perform(self, executioncontext, frame): # Other threads can run between the release() and the acquire() # implicit in the following external function call (which has # otherwise no effect). thread.yield_thread()
def yield_thread(self): thread.yield_thread() # explicitly release the gil (used by test_gil)