MXS-2004 Remove additional dependencies on maxscale/thread.h
This commit is contained in:
parent
5d6b05af1f
commit
f9ba8824d4
@ -15,7 +15,6 @@
|
||||
#include <maxscale/ccdefs.hh>
|
||||
#include <maxscale/monitor.h>
|
||||
#include <maxscale/semaphore.hh>
|
||||
#include <maxscale/thread.h>
|
||||
#include <maxscale/worker.hh>
|
||||
|
||||
namespace maxscale
|
||||
|
@ -14,7 +14,6 @@
|
||||
|
||||
#include <maxscale/cdefs.h>
|
||||
#include <maxscale/poll.h>
|
||||
#include <maxscale/thread.h>
|
||||
#include <maxscale/jansson.h>
|
||||
|
||||
MXS_BEGIN_DECLS
|
||||
|
@ -3377,16 +3377,16 @@ static inline void dcb_sanity_check(DCB* dcb)
|
||||
|
||||
if (dcb->state == DCB_STATE_DISCONNECTED || dcb->state == DCB_STATE_UNDEFINED)
|
||||
{
|
||||
MXS_ERROR("%lu [poll_add_dcb] Error : existing state of dcb %p "
|
||||
MXS_ERROR("[poll_add_dcb] Error : existing state of dcb %p "
|
||||
"is %s, but this should be impossible, crashing.",
|
||||
thread_self(), dcb, STRDCBSTATE(dcb->state));
|
||||
dcb, STRDCBSTATE(dcb->state));
|
||||
raise(SIGABRT);
|
||||
}
|
||||
else if (dcb->state == DCB_STATE_POLLING || dcb->state == DCB_STATE_LISTENING)
|
||||
{
|
||||
MXS_ERROR("%lu [poll_add_dcb] Error : existing state of dcb %p "
|
||||
MXS_ERROR("[poll_add_dcb] Error : existing state of dcb %p "
|
||||
"is %s, but this is probably an error, not crashing.",
|
||||
thread_self(), dcb, STRDCBSTATE(dcb->state));
|
||||
dcb, STRDCBSTATE(dcb->state));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -17,8 +17,6 @@
|
||||
#include <string>
|
||||
#include <microhttpd.h>
|
||||
|
||||
#include <maxscale/thread.h>
|
||||
|
||||
class Client
|
||||
{
|
||||
Client(const Client&);
|
||||
|
@ -836,7 +836,7 @@ bool MariaDBMonitor::wait_cluster_stabilization(MariaDBServer* new_master, const
|
||||
{
|
||||
if (!first_round)
|
||||
{
|
||||
thread_millisleep(500);
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(500));
|
||||
}
|
||||
|
||||
// Erasing elements from an array, so iterate from last to first
|
||||
|
@ -20,7 +20,6 @@
|
||||
#include <vector>
|
||||
|
||||
#include <maxscale/monitor.hh>
|
||||
#include <maxscale/thread.h>
|
||||
|
||||
#include "mariadbserver.hh"
|
||||
|
||||
|
@ -14,7 +14,6 @@
|
||||
|
||||
#include <maxscale/ccdefs.hh>
|
||||
#include <maxscale/monitor.hh>
|
||||
#include <maxscale/thread.h>
|
||||
|
||||
/**
|
||||
* @file mmmon.hh - The Multi-Master monitor
|
||||
|
@ -14,7 +14,6 @@
|
||||
|
||||
#include <maxscale/ccdefs.hh>
|
||||
#include <maxscale/monitor.hh>
|
||||
#include <maxscale/thread.h>
|
||||
|
||||
/**
|
||||
* @file ndbcclustermon.hh A NDBC cluster monitor
|
||||
|
Loading…
x
Reference in New Issue
Block a user