diff --git a/include/olg_scheduler/olg_scheduler.hpp b/include/olg_scheduler/olg_scheduler.hpp index a04f61a..2979481 100644 --- a/include/olg_scheduler/olg_scheduler.hpp +++ b/include/olg_scheduler/olg_scheduler.hpp @@ -97,6 +97,11 @@ class Event : private cavl::Node> /// It is guaranteed that while an event resides in the tree, it has a valid deadline set. [[nodiscard]] std::optional getDeadline() const noexcept { return deadline_; } + static constexpr std::array _get_type_id_() noexcept + { + return {0xB6, 0x87, 0x48, 0xA6, 0x7A, 0xDB, 0x4D, 0xF1, 0xB3, 0x1D, 0xA9, 0x8D, 0x50, 0xA7, 0x82, 0x47}; + } + protected: using Tree = cavl::Tree; using cavl::Node::remove; @@ -189,6 +194,7 @@ class EventLoop final { public: using Event::execute; + using Event::_get_type_id_; }; public: @@ -219,6 +225,8 @@ class EventLoop final this->schedule(Clock::now() + period_, owner.tree_); } + using EventProxy::_get_type_id_; + private: void execute(const Arg& args, Tree& tree) override { @@ -250,6 +258,8 @@ class EventLoop final this->schedule(Clock::now() + min_period_, owner.tree_); } + using EventProxy::_get_type_id_; + private: void execute(const Arg& args, Tree& tree) override { @@ -277,6 +287,8 @@ class EventLoop final this->schedule(deadline, owner.tree_); } + using EventProxy::_get_type_id_; + private: void execute(const Arg& args, Tree&) override {