コード例 #1
0
ファイル: gil.py プロジェクト: zielmicha/pypy
 def reinit_threads(self, space):
     "Called in the child process after a fork()"
     OSThreadLocals.reinit_threads(self, space)
     if self.gil_ready:  # re-initialize the gil if needed
         self._initialize_gil(space)
コード例 #2
0
ファイル: gil.py プロジェクト: charred/pypy
 def reinit_threads(self, space):
     "Called in the child process after a fork()"
     OSThreadLocals.reinit_threads(self, space)
     if self.gil_ready:     # re-initialize the gil if needed
         self._initialize_gil(space)
コード例 #3
0
ファイル: gil.py プロジェクト: antoine1fr/pygirl
 def leave_thread(self, space):
     "Notification that the current thread is stopping: release the GIL."
     OSThreadLocals.leave_thread(self, space)
     self.GIL.release()
コード例 #4
0
ファイル: gil.py プロジェクト: antoine1fr/pygirl
 def enter_thread(self, space):
     "Notification that the current thread is just starting: grab the GIL."
     self.GIL.acquire(True)
     OSThreadLocals.enter_thread(self, space)
コード例 #5
0
ファイル: gil.py プロジェクト: TheDunn/flex-pypy
 def __init__(self):
     OSThreadLocals.__init__(self)
     self.GIL = thread.allocate_lock()
コード例 #6
0
 def leave_thread(self, space):
     "Notification that the current thread is stopping: release the GIL."
     OSThreadLocals.leave_thread(self, space)
     self.GIL.release()
コード例 #7
0
 def enter_thread(self, space):
     "Notification that the current thread is just starting: grab the GIL."
     self.GIL.acquire(True)
     OSThreadLocals.enter_thread(self, space)