MCPcopy Index your code
hub / github.com/RustPython/RustPython / _release_save

Method _release_save

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

Source from the content-addressed store, hash-verified

253 self._count, self._owner = state
254
255 def _release_save(self):
256 if self._count == 0:
257 raise RuntimeError("cannot release un-acquired lock")
258 count = self._count
259 self._count = 0
260 owner = self._owner
261 self._owner = None
262 self._block.release()
263 return (count, owner)
264
265 def _is_owned(self):
266 return self._owner == get_ident()

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected