summaryrefslogtreecommitdiff
path: root/src/mbgl/util/run_loop.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/util/run_loop.hpp')
-rw-r--r--src/mbgl/util/run_loop.hpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mbgl/util/run_loop.hpp b/src/mbgl/util/run_loop.hpp
index 971ad2cac7..1fc7423725 100644
--- a/src/mbgl/util/run_loop.hpp
+++ b/src/mbgl/util/run_loop.hpp
@@ -14,9 +14,9 @@ namespace util {
class RunLoop : private util::noncopyable {
public:
- RunLoop();
+ RunLoop(uv_loop_t*);
+ ~RunLoop();
- void run();
void stop();
// Invoke fn() in the runloop thread.
@@ -63,7 +63,7 @@ public:
});
}
- uv_loop_t* get() { return *loop; }
+ uv_loop_t* get() { return async.get()->loop; }
static uv::tls<RunLoop> current;
@@ -90,8 +90,6 @@ private:
Queue queue;
std::mutex mutex;
-
- uv::loop loop;
uv::async async;
};