MXS-2218 Implement housekeeper in terms of MainWorker

This commit is contained in:
Johan Wikman
2019-01-08 10:23:16 +02:00
parent 026bf747e6
commit 6ba2cb61df
7 changed files with 44 additions and 65 deletions

View File

@ -32,30 +32,6 @@ MXS_BEGIN_DECLS
*/
typedef bool (* TASKFN)(void* data);
/**
* Initialises the housekeeper mechanism.
*
* A call to any of the other housekeeper functions can be made only if
* this function returns successfully. This function must be called after all
* module level initialization is done but before any monitors or services are
* started.
*
* @return True if the housekeeper mechanism was initialized, false otherwise.
*/
bool hkinit();
/**
* Start the housekeeper thread
*
* @return True if the housekeeper mechanism was started
*/
bool hkstart();
/**
* Waits for the housekeeper thread to finish.
*/
void hkfinish();
/**
* @brief Add a new task
*