Lines Matching refs:lock_
21 Lock() : lock_() {}
23 void Acquire() { lock_.Lock(); }
24 void Release() { lock_.Unlock(); }
30 bool Try() { return lock_.Try(); }
42 lock_.Lock();
47 lock_.Unlock();
51 bool rv = lock_.Try();
79 // All private data is implicitly protected by lock_.
89 internal::LockImpl lock_;
97 explicit AutoLock(Lock& lock) : lock_(lock) {
98 lock_.Acquire();
102 lock_.AssertAcquired();
103 lock_.Release();
107 Lock& lock_;
115 explicit AutoUnlock(Lock& lock) : lock_(lock) {
117 lock_.AssertAcquired();
118 lock_.Release();
122 lock_.Acquire();
126 Lock& lock_;