From bef635765a1bbec14d7732856c38c037ea8add6a Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Fri, 4 Oct 2019 12:30:41 +0300 Subject: [core] Decouple Scheduler interface from actor model So that it is possible to schedule normal `std::function` and use `mapbox::base::WeakPtr`. --- include/mbgl/actor/mailbox.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/mbgl/actor/mailbox.hpp') diff --git a/include/mbgl/actor/mailbox.hpp b/include/mbgl/actor/mailbox.hpp index 23c579917a..2b9838ef29 100644 --- a/include/mbgl/actor/mailbox.hpp +++ b/include/mbgl/actor/mailbox.hpp @@ -2,6 +2,7 @@ #include +#include #include #include #include @@ -34,6 +35,7 @@ public: void receive(); static void maybeReceive(std::weak_ptr); + static std::function makeClosure(std::weak_ptr); private: optional scheduler; -- cgit v1.2.1