Remove hooray. And prints remaining work items in queue (#547)

master
Jihoon Lee 2017-09-29 10:04:28 +02:00 committed by Christoph Schütte
parent 3744988fd2
commit 3c521eb573
1 changed files with 1 additions and 1 deletions

View File

@ -355,13 +355,13 @@ void SparsePoseGraph::HandleWorkQueue() {
run_loop_closure_ = false;
while (!run_loop_closure_) {
if (work_queue_->empty()) {
LOG(INFO) << "We caught up. Hooray!";
work_queue_.reset();
return;
}
work_queue_->front()();
work_queue_->pop_front();
}
LOG(INFO) << "Remaining work items in queue: " << work_queue_->size();
// We have to optimize again.
HandleWorkQueue();
});