Searched refs:pseudo_lock_fd (Results 1 – 2 of 2) sorted by relevance
268 pseudo_lock_fd = None273 pseudo_lock_fd = pseudo_lock_fd_return[0]278 py_utils.WaitFor(lambda: _AttemptPseudoLockRelease(pseudo_lock_fd),291 pseudo_lock_fd = None299 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 …]
360 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', '')