Lines Matching defs:lock
13 #include "base/synchronization/lock.h"
19 // SchedulerLock should be used anywhere a lock would be used in the scheduler.
20 // When DCHECK_IS_ON(), lock checking occurs. Otherwise, SchedulerLock is
25 // Default constructor, no predecessor lock.
27 // On Acquisition if any scheduler lock is acquired on this thread.
30 // Constructor that specifies an allowed predecessor for that lock.
32 // On Construction if |predecessor| forms a predecessor lock cycle.
33 // On Acquisition if the previous lock acquired on the thread is not
34 // |predecessor|. Okay if there was no previous lock acquired.
37 // Acquires the lock.
40 // Releases the lock.
43 // DCHECKs if the lock is not acquired.
46 // Creates a condition variable using this as a lock.
70 explicit AutoSchedulerLock(SchedulerLock& lock) : lock_(lock) {