Skip to content
Snippets Groups Projects
Commit 17b137f9 authored by g0dil's avatar g0dil
Browse files

Scheduler: Add timeout() member to TimerEvent

parent 817153f6
No related branches found
No related tags found
No related merge requests found
...@@ -79,6 +79,12 @@ prefix_ void senf::scheduler::TimerEvent::timeout(ClockService::clock_type timeo ...@@ -79,6 +79,12 @@ prefix_ void senf::scheduler::TimerEvent::timeout(ClockService::clock_type timeo
enable(); enable();
} }
prefix_ senf::ClockService::clock_type senf::scheduler::TimerEvent::timeout()
const
{
return timeout_;
}
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
// senf::scheduler::detail::TimerDispatcher // senf::scheduler::detail::TimerDispatcher
......
...@@ -115,6 +115,7 @@ namespace scheduler { ...@@ -115,6 +115,7 @@ namespace scheduler {
/**< \param[in] timeout new timeout time /**< \param[in] timeout new timeout time
\param[in] initiallyEnabled if set \c false, do not \param[in] initiallyEnabled if set \c false, do not
enable callback automatically. */ enable callback automatically. */
ClockService::clock_type timeout() const;
private: private:
virtual void v_run(); virtual void v_run();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment