Home
last modified time | relevance | path

Searched refs:file_lock_ (Results 1 – 3 of 3) sorted by relevance

/external/chromium_org/rlz/lib/
Drecursive_cross_process_lock_posix.cc43 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 …]
Drecursive_cross_process_lock_posix.h34 int file_lock_; member
/external/chromium_org/rlz/mac/lib/
Drlz_value_store_mac.mm339 CHECK(g_recursive_lock.file_lock_ != -1);
340 if (g_recursive_lock.file_lock_ == -1)