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:
Johan Wikman
2018-06-18 14:58:28 +03:00
parent 063e9b9a36
commit 5cf6a9ed22
2 changed files with 30 additions and 6 deletions

View File

@ -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)
{