[core] Abstract main loop inside RunLoop class

This commit is contained in:
Thiago Marcos P. Santos
2015-09-01 11:09:19 +03:00
parent 1d62332204
commit d422c8cac4
11 changed files with 131 additions and 67 deletions

View File

@@ -13,7 +13,7 @@
namespace node_mbgl {
mbgl::util::RunLoop& NodeRunLoop() {
static mbgl::util::RunLoop nodeRunLoop(uv_default_loop());
static mbgl::util::RunLoop nodeRunLoop;
return nodeRunLoop;
}