def _set_sentinel():
"""Dummy implementation of _thread._set_sentinel()."""
return LockType()
python类_set_sentinel()的实例源码
def _set_sentinel():
"""Dummy implementation of _thread._set_sentinel()."""
return LockType()
def _set_sentinel():
"""Dummy implementation of _thread._set_sentinel()."""
return LockType()
def _set_sentinel():
"""Dummy implementation of _thread._set_sentinel()."""
return LockType()
def _set_sentinel():
"""Dummy implementation of _thread._set_sentinel()."""
return LockType()
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()
def _set_sentinel():
"""Dummy implementation of _thread._set_sentinel()."""
return LockType()
def _set_sentinel():
"""Dummy implementation of _thread._set_sentinel()."""
return LockType()
def _set_sentinel():
"""Dummy implementation of _thread._set_sentinel()."""
return LockType()
def _set_sentinel():
"""Dummy implementation of _thread._set_sentinel()."""
return LockType()
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()
def _set_sentinel():
"""Dummy implementation of _thread._set_sentinel()."""
return LockType()
def _set_sentinel():
"""Dummy implementation of _thread._set_sentinel()."""
return LockType()
def _set_sentinel():
"""Dummy implementation of _thread._set_sentinel()."""
return LockType()