use separate workers for tile parsing to avoid blocking the threadpool for other libuv actions

This commit is contained in:
Konstantin Käfer
2014-09-16 18:23:42 +02:00
parent f26bb724dc
commit fd2b2e2082
9 changed files with 89 additions and 23 deletions

View File

@@ -87,7 +87,7 @@ void TileData::reparse() {
// We're creating a new work request. The work request deletes itself after it executed
// the after work handler
new uv::work<util::ptr<TileData>>(
map.getLoop(),
map.getWorker(),
[](util::ptr<TileData> &tile) {
tile->parse();
},