2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
20#ifndef NET_TIMER_INTERVALTIMER_H
21#define NET_TIMER_INTERVALTIMER_H
23#include "core/TimerEventReceiver.h"
25#ifndef DOXYGEN_SHOULD_SKIP_THIS
32namespace core::
timer {
41 IntervalTimer(
const std::function<
void()>& dispatcher,
const utils::
Timeval& timeout,
const std::string& name =
"IntervalTimer");
TimerEventReceiver(const std::string &name, const utils::Timeval &delay)
std::function< void()> dispatcher
IntervalTimer(const std::function< void()> &dispatcher, const utils::Timeval &timeout, const std::string &name="IntervalTimer")
void dispatchEvent() final
IntervalTimer(const IntervalTimer &)=delete
IntervalTimer & operator=(const IntervalTimer &timer)=delete
~IntervalTimer() override=default
void unobservedEvent() override