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

Method __exit__

python/tvm_ffi/utils/lockfile.py:68–71  ·  view source on GitHub ↗

Context manager protocol: release the lock upon exiting the 'with' block.

(self, exc_type: Any, exc_val: Any, exc_tb: Any)

Source from the content-addressed store, hash-verified

66 return self
67
68 def __exit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> Literal[False]:
69 """Context manager protocol: release the lock upon exiting the 'with' block."""
70 self.release()
71 return False # Propagate exceptions, if any
72
73 def acquire(self) -> bool:
74 """Acquire an exclusive, non-blocking lock on the file.

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.95

Tested by

no test coverage detected