Lines Matching refs:self
30 void Barrier::Pass(Thread* self) { in Pass() argument
31 MutexLock mu(self, lock_); in Pass()
32 SetCountLocked(self, count_ - 1); in Pass()
35 void Barrier::Wait(Thread* self) { in Wait() argument
36 Increment(self, -1); in Wait()
39 void Barrier::Init(Thread* self, int count) { in Init() argument
40 MutexLock mu(self, lock_); in Init()
41 SetCountLocked(self, count); in Init()
44 void Barrier::Increment(Thread* self, int delta) { in Increment() argument
45 MutexLock mu(self, lock_); in Increment()
46 SetCountLocked(self, count_ + delta); in Increment()
56 condition_.Wait(self); in Increment()
60 void Barrier::Increment(Thread* self, int delta, uint32_t timeout_ms) { in Increment() argument
61 MutexLock mu(self, lock_); in Increment()
62 SetCountLocked(self, count_ + delta); in Increment()
67 condition_.TimedWait(self, timeout_ms, timeout_ns); in Increment()
79 void Barrier::SetCountLocked(Thread* self, int count) { in SetCountLocked() argument
82 condition_.Broadcast(self); in SetCountLocked()