Lines Matching refs:Lock
58 inline void Lock(); // Block if needed until free then acquire exclusively
67 inline void WriterLock() { Lock(); } // Acquire an exclusive lock in WriterLock()
97 void Mutex::Lock() { assert(--mutex_ == -1); } in Lock() function
99 bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } in TryLock()
110 void Mutex::Lock() { SAFE_PTHREAD(pthread_rwlock_wrlock(&mutex_)); } in Lock() function
125 void Mutex::Lock() { SAFE_PTHREAD(pthread_mutex_lock(&mutex_)); } in Lock() function
128 void Mutex::ReaderLock() { Lock(); } // we don't have read-write locks in ReaderLock()
136 void Mutex::Lock() { EnterCriticalSection(&mutex_); } in Lock() function
139 void Mutex::ReaderLock() { Lock(); } // we don't have read-write locks in ReaderLock()
151 explicit MutexLock(Mutex *mu) : mu_(mu) { mu_->Lock(); } in MutexLock()
203 name.Lock()