src/proteus/core/manager.cpp
void Manager::shutdown() {
  auto request = std::make_shared<UpdateCommand>(UpdateCommandType::Shutdown);
  this->update_queue_->enqueue(request);
  if (this->update_thread_.joinable()) {
    this->update_thread_.join();
  }
}
// TODO(varunsh): if multiple commands sent post-shutdown, they will linger
// in the queue and may cause problems
if multiple commands sent post-shutdown, they will linger
in the queue and may cause problems
if multiple commands sent post - shutdown they will linger in the queue and may cause problems
void Manager::shutdown() {
  auto request = std::make_shared<UpdateCommand>(UpdateCommandType::Shutdown);
  this->update_queue_->enqueue(request);
  if (this->update_thread_.joinable()) {
    this->update_thread_.join();
  }
}
void Manager :: shutdown ( ) { auto request = std :: make_shared < UpdateCommand > ( UpdateCommandType :: Shutdown ) ; this -> update_queue_ -> enqueue ( request ) ; if ( this -> update_thread_ . joinable ( ) ) { this -> update_thread_ . join ( ) ; } }
TODO(varunsh): if multiple commands sent post-shutdown, they will linger
in the queue and may cause problems
TODO ( varunsh ) : if multiple commands sent post - shutdown they will linger in the queue and may cause problems