| 123 | {} |
| 124 | |
| 125 | bool BugsLoader::start(const std::string& bugs_file) { |
| 126 | _bugs_file = bugs_file; |
| 127 | if (pthread_create(&_tid, NULL, run_this, this) != 0) { |
| 128 | LOG(ERROR) << "Fail to create loading thread"; |
| 129 | return false; |
| 130 | } |
| 131 | _started = true; |
| 132 | return true; |
| 133 | } |
| 134 | |
| 135 | void BugsLoader::stop() { |
| 136 | if (!_started) { |