From 1cfc2f11b13412a15f8478cebc35e50e6feb13a2 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Fri, 19 Oct 2018 17:29:46 -0700 Subject: Switch sd_event loops to sdeventplus This change is mostly focused around plumbing the sdeventplus::Event object everywhere and using the member functions provided for the event. No migration to the timer utility is performed yet. Change-Id: I912ab82bc081239d3b7c3cf7c5caca6742ef9c87 Signed-off-by: William A. Kennington III --- timer.hpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'timer.hpp') diff --git a/timer.hpp b/timer.hpp index 979a1cc..3b7783b 100644 --- a/timer.hpp +++ b/timer.hpp @@ -3,6 +3,7 @@ #include #include #include +#include #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 callbackFunc); /** @@ -134,11 +135,6 @@ class Timer */ void setTimeout(); - /** - * @brief The sd_event structure - */ - phosphor::fan::event::EventPtr& timeEvent; - /** * @brief Source of events */ -- cgit v1.2.1