MCPcopy Index your code
hub / github.com/python/cpython / _release_save

Method _release_save

Lib/threading.py:248–256  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

246 self._count, self._owner = state
247
248 def _release_save(self):
249 if self._count == 0:
250 raise RuntimeError("cannot release un-acquired lock")
251 count = self._count
252 self._count = 0
253 owner = self._owner
254 self._owner = None
255 self._block.release()
256 return (count, owner)
257
258 def _is_owned(self):
259 return self._owner == get_ident()

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected