2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#ifndef NET_TIMER_INTERVALTIMERSTOPABLE_H
43#define NET_TIMER_INTERVALTIMERSTOPABLE_H
45#include "core/TimerEventReceiver.h"
47#ifndef DOXYGEN_SHOULD_SKIP_THIS
54namespace core::
timer {
65 const std::string& name =
"IntervalTimerStopable");
72 std::function<
void(
const std::function<
void()>&)>
dispatcher =
nullptr;
TimerEventReceiver(const std::string &name, const utils::Timeval &delay)
std::function< void(const std::function< void()> &)> dispatcher
IntervalTimerStopable(const IntervalTimerStopable &)=delete
void unobservedEvent() override
~IntervalTimerStopable() override=default
void dispatchEvent() final
IntervalTimerStopable & operator=(const IntervalTimerStopable &timer)=delete
IntervalTimerStopable(const std::function< void(const std::function< void()> &stop)> &dispatcher, const utils::Timeval &timeout, const std::string &name="IntervalTimerStopable")