diff options
Diffstat (limited to 'timer.hpp')
-rw-r--r-- | timer.hpp | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -3,6 +3,7 @@ #include <chrono> #include <functional> #include <memory> +#include <sdeventplus/event.hpp> #include "event.hpp" namespace phosphor @@ -46,10 +47,10 @@ class Timer /** * @brief Constructs timer object * - * @param[in] events - sd_event pointer, previously created + * @param[in] event - Event loop reference, previously created * @param[in] callbackFunc - The function to call on timer expiration */ - Timer(phosphor::fan::event::EventPtr& events, + Timer(const sdeventplus::Event& event, std::function<void()> callbackFunc); /** @@ -135,11 +136,6 @@ class Timer void setTimeout(); /** - * @brief The sd_event structure - */ - phosphor::fan::event::EventPtr& timeEvent; - - /** * @brief Source of events */ phosphor::fan::event::EventSourcePtr eventSource; |