MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _release_save

Method _release_save

tools/python-3.11.9-amd64/Lib/threading.py:208–216  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

206 self._count, self._owner = state
207
208 def _release_save(self):
209 if self._count == 0:
210 raise RuntimeError("cannot release un-acquired lock")
211 count = self._count
212 self._count = 0
213 owner = self._owner
214 self._owner = None
215 self._block.release()
216 return (count, owner)
217
218 def _is_owned(self):
219 return self._owner == get_ident()

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected