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.py268 pseudo_lock_fd = None
273 pseudo_lock_fd = pseudo_lock_fd_return[0]
278 py_utils.WaitFor(lambda: _AttemptPseudoLockRelease(pseudo_lock_fd),
291 pseudo_lock_fd = None
299 pseudo_lock_fd = open(pseudo_lock_path, 'w')
300 lock.AcquireFileLock(pseudo_lock_fd, lock.LOCK_EX | lock.LOCK_NB)
301 pseudo_lock_fd_return.append(pseudo_lock_fd)
306 if pseudo_lock_fd:
307 pseudo_lock_fd.close()
311 def _AttemptPseudoLockRelease(pseudo_lock_fd): argument
[all …]
Dcloud_storage_unittest.py360 with tempfile.NamedTemporaryFile(suffix='.pseudo_lock') as pseudo_lock_fd:
361 with lock.FileLock(pseudo_lock_fd, lock.LOCK_EX | lock.LOCK_NB):
363 file_path = pseudo_lock_fd.name.replace('.pseudo_lock', '')