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

@@ -11,7 +11,7 @@ namespace mbgl {
Map::Map(View& view, FileSource& fileSource, MapMode mode, bool startPaused)
: data(util::make_unique<MapData>(view, mode)),
context(util::make_unique<util::Thread<MapContext>>("Map", view, fileSource, *data, startPaused))
context(util::make_unique<util::Thread<MapContext>>("Map", util::ThreadPriority::Regular, view, fileSource, *data, startPaused))
{
view.initialize(this);
}