29 void post(std::function<
void()> fn)
override { d_.post(std::move(fn)); }
43 return d_.is_main_thread();
58 std::function<
void()> fn)
override {
59 d_.post_delayed(delay, std::move(fn));
63 return d_.is_main_thread();
73 void schedule(std::function<
void()> fn)
override {
74 d_.post(std::move(fn));
78 std::function<
void()> fn)
override {
79 d_.post_delayed(delay, std::move(fn));
Tiny interface — anything that can post a function to run after a delay.
Definition property_ops.hpp:62
Abstract executor interface — schedules a callable to run "somewhere".
Definition executor.hpp:36
aria::SchedulerCaps caps() const noexcept override
Dispatcher-backed executor: safe as graph executor (main-thread affinity), safe as worker (posts land...
Definition dispatcher_executor.hpp:34
void post(std::function< void()> fn) override
Legacy / canonical executor entry point.
Definition dispatcher_executor.hpp:29
bool is_main_thread() const noexcept override
True iff the calling thread is the scheduler's "main" thread.
Definition dispatcher_executor.hpp:42
DispatcherExecutor(IDispatcher &d) noexcept
Definition dispatcher_executor.hpp:27
bool is_main_thread() const noexcept override
True iff the calling thread is the scheduler's "main" thread.
Definition dispatcher_executor.hpp:62
aria::SchedulerCaps caps() const noexcept override
Capability bitmask.
Definition dispatcher_executor.hpp:66
DispatcherScheduler(IDispatcher &d) noexcept
Definition dispatcher_executor.hpp:55
void schedule_after(std::chrono::milliseconds delay, std::function< void()> fn) override
Submit fn for execution after delay.
Definition dispatcher_executor.hpp:77
void post_after(std::chrono::milliseconds delay, std::function< void()> fn) override
Legacy / canonical timer entry point.
Definition dispatcher_executor.hpp:57
void schedule(std::function< void()> fn) override
Submit fn for execution "soon". Defines Caps::Post.
Definition dispatcher_executor.hpp:73
Abstract main-thread dispatcher.
Definition dispatcher.hpp:26
Definition container.hpp:11
SchedulerCaps
Definition scheduler.hpp:83
@ Post
Can submit "fire now" work.
Definition scheduler.hpp:89
@ GraphSafe
Safe to use as the graph-thread executor — i.e.
Definition scheduler.hpp:107
@ Pumpable
Posted work is held in a queue until a pump-style call drains it (e.g.
Definition scheduler.hpp:102
@ Delay
Can submit work after a wall-clock or virtual-time delay.
Definition scheduler.hpp:93
@ MainThread
Submitted work runs on a single, identifiable "main" thread that is consistent across calls.
Definition scheduler.hpp:97
@ WorkerSafe
Safe to host blocking worker tasks (e.g.
Definition scheduler.hpp:111