Searched refs:my_lock (Results 1 – 2 of 2) sorted by relevance
432 PosixFileLock* my_lock = new PosixFileLock; in LockFile() local433 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() local443 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()
622 ChromiumFileLock* my_lock = new ChromiumFileLock; in LockFile() local623 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() local633 ::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()