Home
last modified time | relevance | path

Searched refs:LockMode (Results 1 – 5 of 5) sorted by relevance

/external/cronet/base/files/
Dfile_locking_unittest.cc99 const File::LockMode mode = in MULTIPROCESS_TEST_MAIN()
100 use_exclusive_lock ? File::LockMode::kExclusive : File::LockMode::kShared; in MULTIPROCESS_TEST_MAIN()
161 void StartChildAndSignalLock(File::LockMode lock_mode, in StartChildAndSignalLock()
170 case File::LockMode::kExclusive: in StartChildAndSignalLock()
173 case File::LockMode::kShared: in StartChildAndSignalLock()
201 StartChildAndSignalLock(File::LockMode::kExclusive, kFileUnlock); in TEST_F()
203 ASSERT_NE(File::FILE_OK, lock_file_.Lock(File::LockMode::kExclusive)); in TEST_F()
204 ASSERT_NE(File::FILE_OK, lock_file_.Lock(File::LockMode::kShared)); in TEST_F()
207 ASSERT_EQ(File::FILE_OK, lock_file_.Lock(File::LockMode::kShared)); in TEST_F()
209 ASSERT_EQ(File::FILE_OK, lock_file_.Lock(File::LockMode::kExclusive)); in TEST_F()
[all …]
Dfile_posix.cc78 short FcntlFlockType(absl::optional<File::LockMode> mode) { in FcntlFlockType()
82 case File::LockMode::kShared: in FcntlFlockType()
84 case File::LockMode::kExclusive: in FcntlFlockType()
91 absl::optional<File::LockMode> mode) { in CallFcntlFlock()
123 absl::optional<File::LockMode> mode) {
416 File::Error File::Lock(File::LockMode mode) { in Lock()
423 return CallFcntlFlock(file_.get(), absl::optional<File::LockMode>()); in Unlock()
Dfile_win.cc254 DWORD LockFileFlagsForMode(File::LockMode mode) { in LockFileFlagsForMode()
257 case File::LockMode::kShared: in LockFileFlagsForMode()
259 case File::LockMode::kExclusive: in LockFileFlagsForMode()
267 File::Error File::Lock(File::LockMode mode) { in Lock()
Dfile.h277 enum class LockMode { enum
302 Error Lock(LockMode mode);
/external/libabigail/tests/data/test-read-dwarf/
Dtest12-pr18844.so.abi20837 …<enum-decl name='LockMode' filepath='src/mongo/db/concurrency/lock_manager_defs.h' line='58' colum…