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

Function acquire

tests/native/test_descriptor.py:212–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210 started = threading.Event()
211
212 def acquire() -> float:
213 started.set()
214 before = _CPU_TIME()
215 lock_descriptor(contender, poll_interval=0.01)
216 return _CPU_TIME() - before
217
218 try:
219 with ThreadPoolExecutor(max_workers=1) as executor:

Callers

nothing calls this directly

Calls 1

lock_descriptorFunction · 0.90

Tested by

no test coverage detected