[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
This commit is contained in:
@@ -28,6 +28,7 @@ public:
|
||||
q->process();
|
||||
});
|
||||
}
|
||||
~AsyncQueue() {}
|
||||
|
||||
void send(T &&data) {
|
||||
{
|
||||
@@ -60,9 +61,6 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
~AsyncQueue() {
|
||||
}
|
||||
|
||||
void process() {
|
||||
std::unique_ptr<T> item;
|
||||
while (true) {
|
||||
|
||||
Reference in New Issue
Block a user