MXS-2218 Centralize worker shutdown handling

This commit is contained in:
Johan Wikman
2019-01-08 14:39:26 +02:00
parent 29b6e53eb8
commit 5a698be45c
4 changed files with 24 additions and 15 deletions

View File

@ -45,6 +45,12 @@ MainWorker::~MainWorker()
this_unit.pCurrent_main = nullptr;
}
//static
bool MainWorker::created()
{
return this_unit.pCurrent_main ? true : false;
}
//static
MainWorker& MainWorker::get()
{