Fix build failures
Fixed build failures caused by merges and rebases.
This commit is contained in:
parent
667e9df97c
commit
af70dc3973
@ -22,7 +22,6 @@
|
||||
|
||||
#include <maxbase/semaphore.hh>
|
||||
#include <maxscale/platform.h>
|
||||
#include <maxscale/semaphore.hh>
|
||||
#include <maxscale/session.h>
|
||||
#include <maxscale/utils.hh>
|
||||
#include <maxscale/worker.h>
|
||||
@ -676,7 +675,7 @@ public:
|
||||
*
|
||||
* @param pSem Semaphore that is posted on once the thread has started
|
||||
*/
|
||||
void run(mxs::Semaphore* pSem = NULL);
|
||||
void run(mxb::Semaphore* pSem = NULL);
|
||||
|
||||
/**
|
||||
* Run worker in separate thread.
|
||||
@ -1180,7 +1179,7 @@ private:
|
||||
|
||||
void handle_message(MessageQueue& queue, const MessageQueue::Message& msg); // override
|
||||
|
||||
static void thread_main(Worker* pThis, mxs::Semaphore* pSem);
|
||||
static void thread_main(Worker* pThis, mxb::Semaphore* pSem);
|
||||
|
||||
void poll_waitevents();
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
#include <maxbase/semaphore.hh>
|
||||
#include <maxscale/poll.h>
|
||||
#include <maxscale/query_classifier.h>
|
||||
#include <maxscale/routingworker.h>
|
||||
|
@ -527,7 +527,7 @@ bool Worker::post_message(uint32_t msg_id, intptr_t arg1, intptr_t arg2)
|
||||
return m_pQueue->post(message);
|
||||
}
|
||||
|
||||
void Worker::run(mxs::Semaphore* pSem)
|
||||
void Worker::run(mxb::Semaphore* pSem)
|
||||
{
|
||||
this_thread.pCurrent_worker = this;
|
||||
|
||||
@ -559,7 +559,7 @@ bool Worker::start()
|
||||
{
|
||||
ss_dassert(!m_started);
|
||||
ss_dassert(m_thread.get_id() == std::thread::id());
|
||||
mxs::Semaphore sem;
|
||||
mxb::Semaphore sem;
|
||||
|
||||
m_started = true;
|
||||
m_should_shutdown = false;
|
||||
@ -664,7 +664,7 @@ void Worker::handle_message(MessageQueue& queue, const MessageQueue::Message& ms
|
||||
* @param arg A worker.
|
||||
*/
|
||||
//static
|
||||
void Worker::thread_main(Worker* pThis, mxs::Semaphore* pSem)
|
||||
void Worker::thread_main(Worker* pThis, mxb::Semaphore* pSem)
|
||||
{
|
||||
pThis->run(pSem);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user