summaryrefslogtreecommitdiff
path: root/include/mbgl/util
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2017-07-25 17:39:45 +0300
committerIvo van Dongen <ivovandongen@users.noreply.github.com>2017-08-09 12:08:21 +0300
commit1ff8b3a7995c6d7031017d96ffc51e4cc9ed6cf7 (patch)
treeb38186e093adfe4e27e296c8816dd5d219d3e815 /include/mbgl/util
parentedaa002c3c23e84db8ca07c521118da37ba5bb38 (diff)
downloadqtlocation-mapboxgl-1ff8b3a7995c6d7031017d96ffc51e4cc9ed6cf7.tar.gz
[core] make RunLoop::schedule public
Diffstat (limited to 'include/mbgl/util')
-rw-r--r--include/mbgl/util/run_loop.hpp12
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();