ApplicationImpl::~ApplicationImpl() { LOG(INFO) << "Application destructing"; reportCfgMetrics(); gracefulStop(); joinAllThreads(); LOG(INFO) << "Application destroyed"; }
virtual ~EveryTimer() { // mandatory, the user is unlikely to call it when using 'every' if (started()) { gracefulStop(); wait(); // wait indefinitively if needed } }