MCPcopy Create free account
hub / github.com/XiaoMi/mace / device_lock

Function device_lock

tools/python/utils/util.py:210–213  ·  view source on GitHub ↗
(device_id, timeout=7200)

Source from the content-addressed store, hash-verified

208# lock
209################################
210def device_lock(device_id, timeout=7200):
211 return filelock.FileLock(
212 "/tmp/device-lock-%s" % device_id.replace("/", ""),
213 timeout=timeout)
214
215
216def is_device_locked(device_id):

Callers 1

is_device_lockedFunction · 0.70

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected