Searched refs:file_lock_ (Results 1 – 3 of 3) sorted by relevance
43 CHECK(file_lock_ == -1); in TryGetCrossProcessLock()44 file_lock_ = open(lock_filename.value().c_str(), O_RDWR | O_CREAT, 0666); in TryGetCrossProcessLock()45 if (file_lock_ == -1) { in TryGetCrossProcessLock()53 HANDLE_EINTR(flock(file_lock_, LOCK_EX | LOCK_NB))) == -1 && in TryGetCrossProcessLock()62 close(file_lock_); in TryGetCrossProcessLock()63 file_lock_ = -1; in TryGetCrossProcessLock()68 return file_lock_ != -1; in TryGetCrossProcessLock()73 if (file_lock_ != -1) { in ReleaseLock()74 ignore_result(HANDLE_EINTR(flock(file_lock_, LOCK_UN))); in ReleaseLock()75 close(file_lock_); in ReleaseLock()[all …]
34 int file_lock_; member
339 CHECK(g_recursive_lock.file_lock_ != -1);340 if (g_recursive_lock.file_lock_ == -1)