| 32 | namespace core { |
| 33 | |
| 34 | void Repository::start() { |
| 35 | if (this->purge_period_ <= 0) |
| 36 | return; |
| 37 | if (running_) |
| 38 | return; |
| 39 | running_ = true; |
| 40 | thread_ = std::thread(&Repository::threadExecutor, this); |
| 41 | logger_->log_debug("%s Repository Monitor Thread Start", name_); |
| 42 | } |
| 43 | |
| 44 | void Repository::stop() { |
| 45 | if (!running_) |
no test coverage detected