Searched refs:my_lock (Results 1 - 2 of 2) sorted by relevance

/external/chromium_org/third_party/leveldatabase/src/util/
H A Denv_posix.cc432 PosixFileLock* my_lock = new PosixFileLock; local
433 my_lock->fd_ = fd;
434 my_lock->name_ = fname;
435 *lock = my_lock;
441 PosixFileLock* my_lock = reinterpret_cast<PosixFileLock*>(lock); local
443 if (LockOrUnlock(my_lock->fd_, false) == -1) {
446 locks_.Remove(my_lock->name_);
447 close(my_lock->fd_);
448 delete my_lock;
/external/chromium_org/third_party/leveldatabase/
H A Denv_chromium.cc959 ChromiumFileLock* my_lock = new ChromiumFileLock; local
960 my_lock->file_ = file;
961 my_lock->name_ = fname;
962 *lock = my_lock;
967 ChromiumFileLock* my_lock = reinterpret_cast<ChromiumFileLock*>(lock); local
971 ::base::UnlockPlatformFile(my_lock->file_);
974 MakeIOError(my_lock->name_, "Could not unlock lock file.", kUnlockFile);
976 ::base::ClosePlatformFile(my_lock->file_);
977 } else if (!::base::ClosePlatformFile(my_lock->file_)) {
979 MakeIOError(my_lock
[all...]

Completed in 80 milliseconds