MXS-2004 Remove dependency of maxscale/thread.h

This commit is contained in:
Johan Wikman
2018-08-10 14:03:52 +03:00
parent e978387775
commit b408894f6d
5 changed files with 6 additions and 8 deletions

View File

@ -28,7 +28,6 @@
#include <maxscale/atomic.h>
#include <maxscale/debug.h>
#include <maxscale/thread.h>
#include <maxscale/utils.h>
#include <maxscale/config.h>
#include <maxscale/clock.h>

View File

@ -19,12 +19,12 @@
#include <sys/wait.h>
#include <fcntl.h>
#include <string>
#include <thread>
#include <maxscale/alloc.h>
#include <maxscale/debug.h>
#include <maxscale/log_manager.h>
#include <maxscale/pcre2.h>
#include <maxscale/thread.h>
/**
* Tokenize a string into arguments suitable for a `execvp` call
@ -303,7 +303,7 @@ int externcmd_execute(EXTERNCMD* cmd)
else
{
// Sleep and try again
thread_millisleep(1);
std::this_thread::sleep_for(std::chrono::milliseconds(1));
}
break;