我们从Python开源项目中,提取了以下16个代码示例,用于说明如何使用_thread._set_sentinel()。
def _set_sentinel(): """Dummy implementation of _thread._set_sentinel().""" return LockType()
def _set_tstate_lock(self): """ Set a lock object which will be released by the interpreter when the underlying thread state (see pystate.h) gets deleted. """ self._tstate_lock = _set_sentinel() self._tstate_lock.acquire()