MCPcopy Create free account
hub / github.com/apache/tvm-ffi / __init__

Method __init__

python/tvm_ffi/utils/lockfile.py:55–58  ·  view source on GitHub ↗

Initialize a file lock using the given lock file path.

(self, lock_file_path: str)

Source from the content-addressed store, hash-verified

53 """
54
55 def __init__(self, lock_file_path: str) -> None:
56 """Initialize a file lock using the given lock file path."""
57 self.lock_file_path = lock_file_path
58 self._file_descriptor: int | None = None
59
60 def __enter__(self) -> FileLock:
61 """Acquire the lock upon entering the context.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected