コード例 #1
0
ファイル: gil.py プロジェクト: ieure/pypy
 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()
コード例 #2
0
 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()
コード例 #3
0
ファイル: gil.py プロジェクト: ieure/pypy
 def yield_thread(self):
     thread.yield_thread()  # explicitly release the gil (used by test_gil)
コード例 #4
0
 def yield_thread(self):
     thread.yield_thread()  # explicitly release the gil (used by test_gil)