| 52 | } |
| 53 | |
| 54 | void KeepMasterThread::Run() { |
| 55 | if (!impl_->t) { |
| 56 | impl_->stop = false; |
| 57 | impl_->t = unique_ptr<thread>(new thread(&KeepMasterThread::DoRun, this)); |
| 58 | } |
| 59 | assert(impl_->t); |
| 60 | } |
| 61 | |
| 62 | void KeepMasterThread::Stop() { |
| 63 | if (impl_->t) { |