MCPcopy Create free account
hub / github.com/chromium/crashpad / ThreadMain

Method ThreadMain

util/thread/worker_thread.cc:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 ~WorkerThreadImpl() {}
31
32 void ThreadMain() override {
33 if (initial_work_delay_ > 0)
34 semaphore_.TimedWait(initial_work_delay_);
35
36 while (self_->running_ || self_->do_work_now_) {
37 self_->delegate_->DoWork(self_);
38 self_->do_work_now_ = false;
39 semaphore_.TimedWait(self_->work_interval_);
40 }
41 }
42
43 void SignalSemaphore() {
44 semaphore_.Signal();

Callers

nothing calls this directly

Calls 2

TimedWaitMethod · 0.45
DoWorkMethod · 0.45

Tested by

no test coverage detected