lower thread priority of worker threads

This commit is contained in:
Konstantin Käfer
2015-04-28 18:23:32 +02:00
parent 7390062c45
commit 27d8e82e1c
12 changed files with 48 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
#include <mbgl/util/worker.hpp>
#include <mbgl/platform/platform.hpp>
#include <cassert>
@@ -15,7 +16,7 @@ public:
Worker::Worker(std::size_t count) {
for (std::size_t i = 0; i < count; i++) {
threads.emplace_back(util::make_unique<util::Thread<Impl>>("Worker"));
threads.emplace_back(util::make_unique<util::Thread<Impl>>("Worker", util::ThreadPriority::Low));
}
}