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

@ -36,7 +36,16 @@ public:
~MainWorker();
/**
* Return the main worker.
* Does the main worker exist. It is only at startup and shutdown that this
* function may return false. When MaxScale is running normally, it will
* always return true.
*
* @return True, if the main worker has been created, false otherwise.
*/
static bool created();
/**
* Returns the main worker.
*
* @return The main worker.
*/