Remove hooray. And prints remaining work items in queue (#547)
parent
3744988fd2
commit
3c521eb573
|
@ -355,13 +355,13 @@ void SparsePoseGraph::HandleWorkQueue() {
|
||||||
run_loop_closure_ = false;
|
run_loop_closure_ = false;
|
||||||
while (!run_loop_closure_) {
|
while (!run_loop_closure_) {
|
||||||
if (work_queue_->empty()) {
|
if (work_queue_->empty()) {
|
||||||
LOG(INFO) << "We caught up. Hooray!";
|
|
||||||
work_queue_.reset();
|
work_queue_.reset();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
work_queue_->front()();
|
work_queue_->front()();
|
||||||
work_queue_->pop_front();
|
work_queue_->pop_front();
|
||||||
}
|
}
|
||||||
|
LOG(INFO) << "Remaining work items in queue: " << work_queue_->size();
|
||||||
// We have to optimize again.
|
// We have to optimize again.
|
||||||
HandleWorkQueue();
|
HandleWorkQueue();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue