MXS-2218 Implement housekeeper in terms of MainWorker
This commit is contained in:
@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user