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

Function thread_work

tests/test_filelock.py:248–251  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

246 lock = lock_type(str(lock_path))
247
248 def thread_work() -> None:
249 for _ in range(100):
250 with lock:
251 assert lock.is_locked
252
253 threads = [ExThread(target=thread_work, name=f"t{i}") for i in range(100)]
254 for thread in threads:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected