Searched refs:pseudo_lock_fd (Results 1 – 2 of 2) sorted by relevance
322 pseudo_lock_fd = None327 pseudo_lock_fd = pseudo_lock_fd_return[0]332 py_utils.WaitFor(lambda: _AttemptPseudoLockRelease(pseudo_lock_fd),345 pseudo_lock_fd = None353 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 …]
405 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', '')