Home
last modified time | relevance | path

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

/external/chromium_org/third_party/webrtc/base/
Dfilelock_unittest.cc33 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); in Run()
60 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); in TEST_F()
68 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); in TEST_F()
73 scoped_ptr<FileLock> lock1(FileLock::TryLock(temp_file_.pathname())); in TEST_F()
76 scoped_ptr<FileLock> lock2(FileLock::TryLock(temp_file_.pathname())); in TEST_F()
81 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname())); in TEST_F()
Dfilelock.cc20 FileLock::FileLock(const std::string& path, FileStream* file) in FileLock() function in rtc::FileLock
24 FileLock::~FileLock() { in ~FileLock()
28 void FileLock::Unlock() { in Unlock()
33 void FileLock::MaybeUnlock() { in MaybeUnlock()
42 FileLock* FileLock::TryLock(const std::string& path) { in TryLock()
52 return new FileLock(path, stream); in TryLock()
Dfilelock.h30 class FileLock {
32 virtual ~FileLock();
36 static FileLock* TryLock(const std::string& path);
40 FileLock(const std::string& path, FileStream* file);
48 DISALLOW_EVIL_CONSTRUCTORS(FileLock);
/external/chromium_org/net/disk_cache/blockfile/
Dfile_lock.cc22 FileLock::FileLock(BlockFileHeader* header) { in FileLock() function in disk_cache::FileLock
29 FileLock::~FileLock() { in ~FileLock()
33 void FileLock::Lock() { in Lock()
40 void FileLock::Unlock() { in Unlock()
Dfile_lock.h30 class NET_EXPORT_PRIVATE FileLock {
32 explicit FileLock(BlockFileHeader* header);
33 virtual ~FileLock();
Dblock_files.cc84 disk_cache::FileLock lock(header_); in CreateMapBlock()
136 disk_cache::FileLock lock(header_); in DeleteMapBlock()
543 FileLock lock(header); in GrowBlockFile()
589 FileLock lock(header); in NextFile()
/external/qemu/android/utils/
Dfilelock.h37 typedef struct FileLock FileLock; typedef
39 extern FileLock* filelock_create ( const char* path );
40 extern void filelock_release( FileLock* lock );
Dfilelock.c73 struct FileLock struct
79 FileLock* next; argument
83 static FileLock* _all_filelocks;
95 filelock_lock( FileLock* lock ) in filelock_lock()
370 filelock_release( FileLock* lock ) in filelock_release()
386 FileLock* lock; in filelock_atexit()
393 FileLock*
403 int total_len = sizeof(FileLock) + file_len + lock_len + temp_len + 3; in filelock_create()
405 FileLock* lock = malloc(total_len); in filelock_create()
/external/chromium_org/third_party/leveldatabase/src/include/leveldb/
Denv.h24 class FileLock; variable
111 virtual Status LockFile(const std::string& fname, FileLock** lock) = 0;
116 virtual Status UnlockFile(FileLock* lock) = 0;
245 class FileLock {
247 FileLock() { } in FileLock() function
248 virtual ~FileLock();
251 FileLock(const FileLock&);
252 void operator=(const FileLock&);
305 Status LockFile(const std::string& f, FileLock** l) { in LockFile()
308 Status UnlockFile(FileLock* l) { return target_->UnlockFile(l); } in UnlockFile()
/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/chromium_org/third_party/leveldatabase/src/util/
Denv.cc24 FileLock::~FileLock() { in ~FileLock()
Denv_posix.cc270 class PosixFileLock : public FileLock {
418 virtual Status LockFile(const std::string& fname, FileLock** lock) { in LockFile()
440 virtual Status UnlockFile(FileLock* lock) { in UnlockFile()
/external/chromium_org/third_party/leveldatabase/src/helpers/memenv/
Dmemenv.cc351 virtual Status LockFile(const std::string& fname, FileLock** lock) { in LockFile()
352 *lock = new FileLock; in LockFile()
356 virtual Status UnlockFile(FileLock* lock) { in UnlockFile()
Dmemenv_test.cc130 FileLock* lock; in TEST()
/external/chromium_org/third_party/leveldatabase/
Denv_chromium.h127 leveldb::FileLock** lock);
128 virtual leveldb::Status UnlockFile(leveldb::FileLock* lock);
Denv_chromium.cc25 using leveldb::FileLock;
40 class ChromiumFileLock : public FileLock {
567 Status ChromiumEnv::LockFile(const std::string& fname, FileLock** lock) { in LockFile()
629 Status ChromiumEnv::UnlockFile(FileLock* lock) { in UnlockFile()
/external/chromium_org/content/browser/indexed_db/leveldb/
Dleveldb_database.cc129 explicit LockImpl(leveldb::Env* env, leveldb::FileLock* lock) in LockImpl()
134 leveldb::FileLock* lock_;
144 leveldb::FileLock* lock = NULL; in LockForTesting()
Dleveldb_unittest.cc249 leveldb::FileLock* lock; in TEST()
259 leveldb::FileLock* lock2; in TEST()
/external/chromium_org/third_party/leveldatabase/src/db/
Ddb_impl.h134 FileLock* db_lock_;
Dc.cc24 using leveldb::FileLock;
58 struct leveldb_filelock_t { FileLock* rep; };
Ddb_impl.cc1491 FileLock* lock; in DestroyDB()