MXS-1929: Split housekeeper initialization

The initialization and starting of the housekeeper is now done
separately. This allows housekeeper tasks to be created when the services
are being created while still preventing the execution of the task before
the startup is complete.
This commit is contained in:
Markus Mäkelä
2018-07-21 12:26:31 +03:00
parent 843b8d92eb
commit a553ddba6e
3 changed files with 29 additions and 3 deletions

View File

@ -44,6 +44,13 @@ typedef bool (*TASKFN)(void *data);
*/
bool hkinit();
/**
* Start the housekeeper thread
*
* @return True if the housekeeper mechanism was started
*/
bool hkstart();
/**
* Waits for the housekeeper thread to finish.
*/