MCPcopy Index your code
hub / github.com/apache/tvm / release

Method release

python/tvm/support/utils.py:216–222  ·  view source on GitHub ↗

Release the lock

(self)

Source from the content-addressed store, hash-verified

214 fcntl.lockf(self.lock_file, fcntl.LOCK_EX)
215
216 def release(self):
217 """Release the lock"""
218 if self.lock_file:
219 if fcntl:
220 fcntl.lockf(self.lock_file, fcntl.LOCK_UN)
221 self.lock_file.close()
222 self.lock_file = None
223
224
225def filelock(path):

Callers 4

_cancel_runFunction · 0.45
mainFunction · 0.45
shutdownMethod · 0.45
_worker_runMethod · 0.45

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected