Home
last modified time | relevance | path

Searched refs:pseudo_lock_fd (Results 1 – 2 of 2) sorted by relevance

/external/chromium-trace/catapult/common/py_utils/py_utils/
Dcloud_storage.py322 pseudo_lock_fd = None
327 pseudo_lock_fd = pseudo_lock_fd_return[0]
332 py_utils.WaitFor(lambda: _AttemptPseudoLockRelease(pseudo_lock_fd),
345 pseudo_lock_fd = None
353 pseudo_lock_fd = open(pseudo_lock_path, 'w')
354 lock.AcquireFileLock(pseudo_lock_fd, lock.LOCK_EX | lock.LOCK_NB)
355 pseudo_lock_fd_return.append(pseudo_lock_fd)
360 if pseudo_lock_fd:
361 pseudo_lock_fd.close()
365 def _AttemptPseudoLockRelease(pseudo_lock_fd): argument
[all …]
Dcloud_storage_unittest.py405 with tempfile.NamedTemporaryFile(suffix='.pseudo_lock') as pseudo_lock_fd:
406 with lock.FileLock(pseudo_lock_fd, lock.LOCK_EX | lock.LOCK_NB):
408 file_path = pseudo_lock_fd.name.replace('.pseudo_lock', '')