Lines Matching refs:self
74 Thread* self = Thread::Current(); in SignalCatcher() local
75 MutexLock mu(self, lock_); in SignalCatcher()
77 cond_.Wait(self); in SignalCatcher()
133 Thread* self = Thread::Current(); in HandleSigQuit() local
134 Locks::mutator_lock_->AssertExclusiveHeld(self); in HandleSigQuit()
135 const char* old_cause = self->StartAssertNoThreadSuspension("Handling SIGQUIT"); in HandleSigQuit()
136 ThreadState old_state = self->SetStateUnsafe(kRunnable); in HandleSigQuit()
158 CHECK_EQ(self->SetStateUnsafe(old_state), kRunnable); in HandleSigQuit()
159 self->EndAssertNoThreadSuspension(old_cause); in HandleSigQuit()
163 if (self->ReadFlag(kCheckpointRequest)) { in HandleSigQuit()
164 self->RunCheckpointFunction(); in HandleSigQuit()
174 int SignalCatcher::WaitForSignal(Thread* self, SignalSet& signals) { in WaitForSignal() argument
175 ScopedThreadStateChange tsc(self, kWaitingInMainSignalCatcherLoop); in WaitForSignal()
185 LOG(INFO) << *self << ": reacting to signal " << signal_number; in WaitForSignal()
202 Thread* self = Thread::Current(); in Run() local
203 DCHECK_NE(self->GetState(), kRunnable); in Run()
205 MutexLock mu(self, signal_catcher->lock_); in Run()
206 signal_catcher->thread_ = self; in Run()
207 signal_catcher->cond_.Broadcast(self); in Run()
216 int signal_number = signal_catcher->WaitForSignal(self, signals); in Run()