diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2017-07-25 17:39:45 +0300 |
---|---|---|
committer | Ivo van Dongen <info@ivovandongen.nl> | 2017-08-08 16:17:00 +0300 |
commit | ca2825aab1799d17ed3ff62ade257465f175d0ba (patch) | |
tree | e20ec5616f2a591ae096318a9e3857806cae83b8 | |
parent | 1cef65fd431b108ae49cee63678ef61c2e5892df (diff) | |
download | qtlocation-mapboxgl-ca2825aab1799d17ed3ff62ade257465f175d0ba.tar.gz |
[core] make RunLoop::schedule public
-rw-r--r-- | include/mbgl/util/run_loop.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/mbgl/util/run_loop.hpp b/include/mbgl/util/run_loop.hpp index 14352ca823..acbea80273 100644 --- a/include/mbgl/util/run_loop.hpp +++ b/include/mbgl/util/run_loop.hpp @@ -62,6 +62,12 @@ public: push(task); return std::make_unique<WorkRequest>(task); } + + void schedule(std::weak_ptr<Mailbox> mailbox) override { + invoke([mailbox] () { + Mailbox::maybeReceive(mailbox); + }); + } class Impl; @@ -72,12 +78,6 @@ private: void push(std::shared_ptr<WorkTask>); - void schedule(std::weak_ptr<Mailbox> mailbox) override { - invoke([mailbox] () { - Mailbox::maybeReceive(mailbox); - }); - } - void withMutex(std::function<void()>&& fn) { std::lock_guard<std::mutex> lock(mutex); fn(); |