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

Function flock_missing

tests/native/test_unix_fallback.py:218–222  ·  view source on GitHub ↗
(fd: int, operation: int)

Source from the content-addressed store, hash-verified

216 acquired: list[bool] = []
217
218 def flock_missing(fd: int, operation: int) -> None:
219 if threading.current_thread() is waiter:
220 in_flock.set()
221 fell_back.wait(timeout=5)
222 raise OSError(ENOSYS, f"Function not implemented for {fd} with {operation}")
223
224 def acquire_after_peer_fallback() -> None:
225 with lock.acquire(timeout=1):

Callers

nothing calls this directly

Calls 1

waitMethod · 0.80

Tested by

no test coverage detected