提交 8ac52b79 编写于 作者: Z Zhang Liangliang 提交者: Jiangtao Hu

Planning: updated stop in reference line provider.

上级 a3fb3814
......@@ -60,6 +60,13 @@ bool ReferenceLineProvider::Start() {
return true;
}
void ReferenceLineProvider::Stop() {
is_stop_ = true;
if (thread_ && thread_->joinable()) {
thread_->join();
}
}
void ReferenceLineProvider::Generate() {
while (!is_stop_) {
const auto &curr_adc_position =
......
......@@ -57,7 +57,8 @@ class ReferenceLineProvider {
const ReferenceLineSmootherConfig& smoother_config);
bool Start();
void Stop() { is_stop_ = true; }
void Stop();
std::vector<ReferenceLine> GetReferenceLines();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册