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::IncrementNoWait(Thread* self) { in IncrementNoWait() argument
44 MutexLock mu(self, *GetLock()); in IncrementNoWait()
45 SetCountLocked(self, count_ + 1); in IncrementNoWait()
48 void Barrier::Wait(Thread* self) { in Wait() argument
49 Increment(self, -1); in Wait()
52 void Barrier::Init(Thread* self, int count) { in Init() argument
53 MutexLock mu(self, *GetLock()); in Init()
54 SetCountLocked(self, count); in Init()
58 void Barrier::Increment(Thread* self, int delta) { in Increment() argument
59 MutexLock mu(self, *GetLock()); in Increment()
60 SetCountLocked(self, count_ + delta); in Increment()
71 condition_->WaitHoldingLocks(self); in Increment()
73 condition_->Wait(self); in Increment()
78 bool Barrier::Increment(Thread* self, int delta, uint32_t timeout_ms) { in Increment() argument
79 MutexLock mu(self, *GetLock()); in Increment()
80 SetCountLocked(self, count_ + delta); in Increment()
86 timed_out = condition_->TimedWait(self, timeout_ms, timeout_ns); in Increment()
99 int Barrier::GetCount(Thread* self) { in GetCount() argument
100 MutexLock mu(self, *GetLock()); in GetCount()
104 void Barrier::SetCountLocked(Thread* self, int count) { in SetCountLocked() argument
107 condition_->Broadcast(self); in SetCountLocked()