MCPcopy Create free account
hub / github.com/tox-dev/filelock / _commit_release

Method _commit_release

src/filelock/_api.py:1382–1385  ·  view source on GitHub ↗

Record the lock as fully released: reset the recursion counter and drop the deadlock-registry entry.

(self)

Source from the content-addressed store, hash-verified

1380 _registry.held.pop(key, None)
1381
1382 def _commit_release(self) -> None:
1383 """Record the lock as fully released: reset the recursion counter and drop the deadlock-registry entry."""
1384 self._context.lock_counter = 0
1385 self._drop_registry_entry()
1386
1387 def _try_break_expired_lock(self) -> None:
1388 """Remove the lock file if its modification time exceeds the configured :attr:`lifetime`."""

Callers 3

releaseMethod · 0.95
_release_serializedMethod · 0.80

Calls 1

_drop_registry_entryMethod · 0.95

Tested by

no test coverage detected