From 817c26111a0d6650e7ebae73e46621626106d0a7 Mon Sep 17 00:00:00 2001 From: Mike Morris Date: Wed, 12 Oct 2016 17:28:22 -0400 Subject: [core] [node] pass thread pool impl to Map constructor Updates mbgl::Map constructor usage everywhere Adds NodeThreadPool implementation using AsyncQueue to call Nan::AsyncQueueWorker from main thread --- benchmark/api/query.benchmark.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'benchmark') diff --git a/benchmark/api/query.benchmark.cpp b/benchmark/api/query.benchmark.cpp index 7fa0781450..a9c4ade2da 100644 --- a/benchmark/api/query.benchmark.cpp +++ b/benchmark/api/query.benchmark.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include @@ -37,7 +38,8 @@ public: std::shared_ptr display{ std::make_shared() }; HeadlessView view{ display, 1 }; DefaultFileSource fileSource{ "benchmark/fixtures/api/cache.db", "." }; - Map map{ view, fileSource, MapMode::Still }; + ThreadPool threadPool{ 4 }; + Map map{ view, fileSource, threadPool, MapMode::Still }; ScreenBox box{{ 0, 0 }, { 1000, 1000 }}; }; -- cgit v1.2.1