Home
last modified time | relevance | path

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

/external/chromium_org/third_party/leveldatabase/src/util/
Denv_posix.cc432 PosixFileLock* my_lock = new PosixFileLock; in LockFile() local
433 my_lock->fd_ = fd; in LockFile()
434 my_lock->name_ = fname; in LockFile()
435 *lock = my_lock; in LockFile()
441 PosixFileLock* my_lock = reinterpret_cast<PosixFileLock*>(lock); in UnlockFile() local
443 if (LockOrUnlock(my_lock->fd_, false) == -1) { in UnlockFile()
446 locks_.Remove(my_lock->name_); in UnlockFile()
447 close(my_lock->fd_); in UnlockFile()
448 delete my_lock; in UnlockFile()
/external/chromium_org/third_party/leveldatabase/
Denv_chromium.cc622 ChromiumFileLock* my_lock = new ChromiumFileLock; in LockFile() local
623 my_lock->file_ = file.Pass(); in LockFile()
624 my_lock->name_ = fname; in LockFile()
625 *lock = my_lock; in LockFile()
630 ChromiumFileLock* my_lock = reinterpret_cast<ChromiumFileLock*>(lock); in UnlockFile() local
633 ::base::File::Error error_code = my_lock->file_.Unlock(); in UnlockFile()
636 MakeIOError(my_lock->name_, "Could not unlock lock file.", kUnlockFile); in UnlockFile()
639 bool removed = locks_.Remove(my_lock->name_); in UnlockFile()
641 delete my_lock; in UnlockFile()