Home
last modified time | relevance | path

Searched refs:FileLock (Results 1 – 18 of 18) sorted by relevance

/external/llvm-project/llvm/unittests/Support/
DLockFileManagerTest.cpp90 SmallString<64> FileLock(LockedFile); in TEST() local
91 FileLock += ".lock"; in TEST()
97 EXPECT_TRUE(sys::fs::exists(FileLock.str())); in TEST()
102 EXPECT_FALSE(sys::fs::exists(FileLock.str())); in TEST()
/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/
DJimfsAsynchronousFileChannel.java31 import java.nio.channels.FileLock;
81 CompletionHandler<FileLock, ? super A> handler) { in lock() argument
87 public ListenableFuture<FileLock> lock( in lock()
100 new Callable<FileLock>() { in lock()
102 public FileLock call() throws IOException { in lock()
109 public FileLock tryLock(long position, long size, boolean shared) throws IOException {
DJimfsFileChannel.java33 import java.nio.channels.FileLock;
599 public FileLock lock(long position, long size, boolean shared) throws IOException { in lock()
618 public FileLock tryLock(long position, long size, boolean shared) throws IOException { in tryLock()
653 static final class FakeFileLock extends FileLock {
/external/llvm/unittests/Support/
DLockFileManagerTest.cpp104 SmallString<64> FileLock(LockedFile); in TEST() local
105 FileLock += ".lock"; in TEST()
111 EXPECT_TRUE(sys::fs::exists(FileLock.str())); in TEST()
116 EXPECT_FALSE(sys::fs::exists(FileLock.str())); in TEST()
/external/toolchain-utils/
Dfile_lock_machine.py97 class FileLock(object): class
153 file_lock = FileLock(lock_filename)
214 with FileLock(self._lock_file) as lock:
227 FileLock.FILE_OPS.append(fd)
240 with FileLock(self._lock_file) as lock:
264 i for i in FileLock.FILE_OPS
268 FileLock.FILE_OPS.remove(i)
375 FileLock.ListLock('*', options.locks_dir)
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/internal/dependency/
DMavenDependencyResolver.java9 import java.nio.channels.FileLock;
91 try (FileLock ignored = channel.lock()) { in whileLocked()
/external/autotest/server/hosts/
Dfile_store_unittest.py64 file_lock = locking.FileLock(store._lock_path,
82 file_lock = locking.FileLock(store._lock_path,
Dfile_store.py41 self._lock = locking.FileLock(
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DJimfsAsynchronousFileChannelTest.java42 import java.nio.channels.FileLock;
211 SettableFuture<FileLock> future = SettableFuture.create(); in checkAsyncLock()
DJimfsFileChannelTest.java46 import java.nio.channels.FileLock;
665 FileLock lock = channel.lock(); in testLock()
/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/trace_event_impl/
Dlog.py182 with lock.FileLock(_log_file, lock.LOCK_EX):
254 with lock.FileLock(_log_file, lock.LOCK_EX):
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dlock.py37 def FileLock(target_file, flags): function
Dcloud_storage.py348 with lock.FileLock(global_file, lock.LOCK_EX | lock.LOCK_NB):
376 with lock.FileLock(global_file, lock.LOCK_EX | lock.LOCK_NB):
Dcloud_storage_unittest.py406 with lock.FileLock(pseudo_lock_fd, lock.LOCK_EX | lock.LOCK_NB):
414 with lock.FileLock(global_lock_fd, lock.LOCK_EX | lock.LOCK_NB):
Dlock_unittest.py150 with lock.FileLock(f, lock.LOCK_EX):
/external/crosvm/fuse/src/
Dsys.rs546 pub struct FileLock { struct
552 unsafe impl DataInit for FileLock {} argument
891 pub lk: FileLock,
900 pub lk: FileLock,
/external/autotest/server/cros/
Dlockfile.py298 FileLock = LinkFileLock variable
/external/autotest/server/cros/tradefed/
Dtradefed_utils.py24 filelock = lockfile.FileLock(filename)