Lines Matching refs:self
35 template void Barrier::Increment<Barrier::kAllowHoldingLocks>(Thread* self, int delta);
36 template void Barrier::Increment<Barrier::kDisallowHoldingLocks>(Thread* self, int delta);
38 void Barrier::Pass(Thread* self) { in Pass() argument
39 MutexLock mu(self, *GetLock()); in Pass()
40 SetCountLocked(self, count_ - 1); in Pass()
43 void Barrier::Wait(Thread* self) { in Wait() argument
44 Increment(self, -1); in Wait()
47 void Barrier::Init(Thread* self, int count) { in Init() argument
48 MutexLock mu(self, *GetLock()); in Init()
49 SetCountLocked(self, count); in Init()
53 void Barrier::Increment(Thread* self, int delta) { in Increment() argument
54 MutexLock mu(self, *GetLock()); in Increment()
55 SetCountLocked(self, count_ + delta); in Increment()
66 condition_->WaitHoldingLocks(self); in Increment()
68 condition_->Wait(self); in Increment()
73 bool Barrier::Increment(Thread* self, int delta, uint32_t timeout_ms) { in Increment() argument
74 MutexLock mu(self, *GetLock()); in Increment()
75 SetCountLocked(self, count_ + delta); in Increment()
81 timed_out = condition_->TimedWait(self, timeout_ms, timeout_ns); in Increment()
94 int Barrier::GetCount(Thread* self) { in GetCount() argument
95 MutexLock mu(self, *GetLock()); in GetCount()
99 void Barrier::SetCountLocked(Thread* self, int count) { in SetCountLocked() argument
102 condition_->Broadcast(self); in SetCountLocked()