MXS-2008 Move Worker and MessageQueue to maxbase

This commit is contained in:
Johan Wikman
2018-08-20 13:03:39 +03:00
parent 02ed338afa
commit 88f1795412
29 changed files with 196 additions and 199 deletions

View File

@ -48,6 +48,7 @@
using std::string;
using std::stringstream;
using maxbase::Worker;
using namespace maxscale;
/** Global session id counter. Must be updated atomically. Value 0 is reserved for
@ -323,7 +324,7 @@ void session_close(MXS_SESSION *session)
}
}
class ServiceDestroyTask: public mxs::WorkerDisposableTask
class ServiceDestroyTask: public Worker::DisposableTask
{
public:
ServiceDestroyTask(Service* service):
@ -358,7 +359,7 @@ static void session_free(MXS_SESSION *session)
// Destroy the service in the main routing worker thread
mxs::RoutingWorker* main_worker = mxs::RoutingWorker::get(mxs::RoutingWorker::MAIN);
main_worker->execute(std::unique_ptr<ServiceDestroyTask>(new ServiceDestroyTask(service)),
mxs::Worker::EXECUTE_AUTO);
Worker::EXECUTE_AUTO);
}
}