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