#include "common/event/real_time_system.h" #include #include "common/common/assert.h" #include "common/event/timer_impl.h" namespace Envoy { namespace Event { namespace { class RealScheduler : public Scheduler { public: RealScheduler(Scheduler& base_scheduler) : base_scheduler_(base_scheduler) {} TimerPtr createTimer(const TimerCb& cb, Dispatcher& d) override { return base_scheduler_.createTimer(cb, d); }; private: Scheduler& base_scheduler_; }; } // namespace SchedulerPtr RealTimeSystem::createScheduler(Scheduler& base_scheduler, CallbackScheduler&) { return std::make_unique(base_scheduler); } } // namespace Event } // namespace Envoy