Lines Matching refs:self
32 void Barrier::Pass(Thread* self) {
33 MutexLock mu(self, lock_);
34 SetCountLocked(self, count_ - 1);
37 void Barrier::Wait(Thread* self) {
38 Increment(self, -1);
41 void Barrier::Init(Thread* self, int count) {
42 MutexLock mu(self, lock_);
43 SetCountLocked(self, count);
46 void Barrier::Increment(Thread* self, int delta) {
47 MutexLock mu(self, lock_);
48 SetCountLocked(self, count_ + delta);
58 condition_.Wait(self);
62 bool Barrier::Increment(Thread* self, int delta, uint32_t timeout_ms) {
63 MutexLock mu(self, lock_);
64 SetCountLocked(self, count_ + delta);
70 timed_out = condition_.TimedWait(self, timeout_ms, timeout_ns);
83 void Barrier::SetCountLocked(Thread* self, int count) {
86 condition_.Broadcast(self);