MXS-1915 Allow Worker to be used stand-alone
It's no longer necessary to inherit from Worker in order to use it, but it can now be used in a stand-alone fashion. This fits the MonitorInstance use-case better.
This commit is contained in:
@ -935,6 +935,19 @@ void Worker::thread_main(void* pArg)
|
||||
pWorker->run();
|
||||
}
|
||||
|
||||
bool Worker::pre_run()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void Worker::post_run()
|
||||
{
|
||||
}
|
||||
|
||||
void Worker::epoll_tick()
|
||||
{
|
||||
}
|
||||
|
||||
// static
|
||||
void Worker::resolve_poll_error(int fd, int errornum, int op)
|
||||
{
|
||||
|
Reference in New Issue
Block a user