def _thread_run(self): if pyglet.options['debug_trace']: pyglet._install_trace() with self._threads_lock: self._threads.add(self) self.run() with self._threads_lock: self._threads.remove(self)
def _thread_run(self): if pyglet.options['debug_trace']: pyglet._install_trace() self._threads_lock.acquire() self._threads.add(self) self._threads_lock.release() self.run() self._threads_lock.acquire() self._threads.remove(self) self._threads_lock.release()