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

@@ -32,7 +32,7 @@ SQLiteStore::SQLiteStore(uv_loop_t *loop, const std::string &path)
db(std::make_shared<Database>(path.c_str(), ReadWrite | Create)) {
createSchema();
worker = new uv_worker_t;
uv_worker_init_named(worker, loop, "SQLite");
uv_worker_init(worker, loop, 1, "SQLite");
}
SQLiteStore::~SQLiteStore() {