| 59 | } |
| 60 | |
| 61 | void PstackWatcher::Shutdown() { |
| 62 | { |
| 63 | MutexLock guard(lock_); |
| 64 | running_ = false; |
| 65 | cond_.Broadcast(); |
| 66 | } |
| 67 | if (thread_) { |
| 68 | CHECK_OK(ThreadJoiner(thread_.get()).Join()); |
| 69 | thread_.reset(); |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | bool PstackWatcher::IsRunning() const { |
| 74 | MutexLock guard(lock_); |
nothing calls this directly
no test coverage detected