4#include <QtCore/QPointer>
15 quint64
nowUs()
const override;
26 QPointer<QObject> context;
28 QMetaObject::Connection contextDestroyed;
32 QHash<int, Task> _tasks;
33 QHash<TaskId, int> _timers;
std::function< void()> Task
Qt event-loop implementation; no callback runs inside schedule().
void cancel(TaskId task) override
Cancellation from another thread is ignored. All other access and destruction must occur on the owner...
~QtRuntimeScheduler() override
void timerEvent(QTimerEvent *event) override
TaskId schedule(QObject *context, std::chrono::microseconds delay, Callback callback) override
quint64 nowUs() const override
std::function< void()> Callback