Lines Matching full:lock
15 #include "base/synchronization/lock.h"
60 // The WorkQueue::lock_, as accessed via WorkQueue::lock(), should be used for
72 // They should use the lock to get exclusive access.
86 // Worker threads can call them but not needed to acquire a lock.
87 Lock* lock();
113 // Caller must acquire lock before calling.
118 // should not hold the lock when calling this method.
123 Lock lock_;
150 Lock lock;
154 ConditionVariable cv1(&lock);
158 ConditionVariable cv(&lock);
160 lock.Acquire();
163 lock.Release();
165 lock.Acquire();
169 lock.Release();
173 Lock lock;
174 ConditionVariable cv(&lock);
175 lock.Acquire();
188 lock.Release();
201 base::AutoLock auto_lock(*queue.lock());
212 base::AutoLock auto_lock(*queue.lock());
235 base::AutoLock auto_lock(*queue.lock());
255 base::AutoLock auto_lock(*queue.lock());
281 base::AutoLock auto_lock(*queue.lock());
304 base::AutoLock auto_lock(*queue.lock());
325 base::AutoLock auto_lock(*queue.lock());
346 base::AutoLock auto_lock(*queue.lock());
365 base::AutoLock auto_lock(*queue.lock());
383 Lock private_lock; // Used locally for master to wait.
388 base::AutoLock auto_lock(*queue.lock());
398 base::AutoLock auto_lock(*queue.lock());
415 base::AutoLock auto_lock(*queue.lock());
426 base::AutoLock auto_lock(*queue.lock());
443 base::AutoLock auto_lock(*queue.lock());
454 base::AutoLock auto_lock(*queue.lock());
557 // take the lock. Threads will call the thread_shutting_down() method with the
558 // lock already acquired.
576 Lock* WorkQueue::lock() {
707 Lock private_lock; // Used to waste time on "our work".
726 } // Release lock