Lines Matching refs:lock
27 const SchedulerLockImpl* const lock, in RegisterLock() argument
29 DCHECK_NE(lock, predecessor) << "Reentrant locks are unsupported."; in RegisterLock()
31 allowed_predecessor_map_[lock] = predecessor; in RegisterLock()
32 AssertSafePredecessor(lock); in RegisterLock()
35 void UnregisterLock(const SchedulerLockImpl* const lock) { in UnregisterLock() argument
37 allowed_predecessor_map_.erase(lock); in UnregisterLock()
40 void RecordAcquisition(const SchedulerLockImpl* const lock) { in RecordAcquisition() argument
41 AssertSafeAcquire(lock); in RecordAcquisition()
42 GetAcquiredLocksOnCurrentThread()->push_back(lock); in RecordAcquisition()
45 void RecordRelease(const SchedulerLockImpl* const lock) { in RecordRelease() argument
48 std::find(acquired_locks->begin(), acquired_locks->end(), lock); in RecordRelease()
60 void AssertSafeAcquire(const SchedulerLockImpl* const lock) { in AssertSafeAcquire() argument
71 allowed_predecessor_map_.at(lock); in AssertSafeAcquire()
75 void AssertSafePredecessor(const SchedulerLockImpl* lock) const { in AssertSafePredecessor()
78 allowed_predecessor_map_.at(lock); in AssertSafePredecessor()
81 DCHECK_NE(predecessor, lock) << in AssertSafePredecessor()