Lines Matching defs:lock
8 #include "base/synchronization/lock.h"
17 // The WaitableEvent maintains a list of waiters, protected by a lock. Each
22 // Waiting involves grabbing the lock and adding oneself to the wait list. Async
23 // waits can be canceled, which means grabbing the lock and removing oneself
122 // Called with lock held.
131 // unlocking it and removing it from the wait-list. Called with lock held.
137 base::Lock* lock() {
148 base::Lock lock_;
173 sw.lock()->Acquire();
177 // We are violating locking order here by holding the SyncWaiter lock but not
178 // the WaitableEvent lock. However, this is safe because we don't lock @lock_
187 // We can't acquire @lock_ before releasing the SyncWaiter lock (because
193 sw.lock()->Release();
257 sw.lock()->Acquire();
269 sw.lock()->Release();
345 // Wake all waiting waiters. Called with lock held.
361 // Try to wake a single waiter. Return true if one was woken. Called with lock
377 // Add a waiter to the list of those waiting. Called with lock held.
385 // actually removed. Called with lock held.