[core] Include Linux-specific scheduling header

before, builds for Linux didn't include thread priority control
This commit is contained in:
Konstantin Käfer
2015-11-04 19:03:35 +01:00
parent ed1a761632
commit 24285926c2

View File

@@ -3,6 +3,9 @@
#include <mbgl/platform/log.hpp>
#include <pthread.h>
#ifdef __linux__
#include <linux/sched.h>
#endif
#include <sched.h>
namespace mbgl {
@@ -16,6 +19,8 @@ void makeThreadLowPriority() {
if (status != 0) {
Log::Warning(Event::General, "Couldn't set thread scheduling policy");
}
#else
#pragma message("Building without thread priority control")
#endif
}