summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnand Thakker <github@anandthakker.net>2018-06-12 09:34:41 -0400
committerAnand Thakker <github@anandthakker.net>2018-06-12 09:34:41 -0400
commitf41bdc4407e8780e55f8ee6d8719e1dad85b1f7f (patch)
treede70890539dd975c8d3f518f721a6c074327b41e
parented7623092515f264ab4dc8e8dc7f493ecfd67a6c (diff)
downloadqtlocation-mapboxgl-f41bdc4407e8780e55f8ee6d8719e1dad85b1f7f.tar.gz
wip 1
-rw-r--r--include/mbgl/actor/scheduler.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mbgl/actor/scheduler.hpp b/include/mbgl/actor/scheduler.hpp
index d8a26ebeab..75ead29f0a 100644
--- a/include/mbgl/actor/scheduler.hpp
+++ b/include/mbgl/actor/scheduler.hpp
@@ -31,6 +31,11 @@ class Mailbox;
class Scheduler {
public:
virtual ~Scheduler() = default;
+
+ // Used by a Mailbox when it has a message in its queue to request that it
+ // be scheduled. Specifically, the scheduler is expected to asynchronously
+ // call `receive() on the given mailbox, provided it still exists at that
+ // time.
virtual void schedule(std::weak_ptr<Mailbox>) = 0;
// Set/Get the current Scheduler for this thread