distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
SoftwareTimerSupervisor.hpp
Go to the documentation of this file.
1 
12 #ifndef INCLUDE_DISTORTOS_INTERNAL_SCHEDULER_SOFTWARETIMERSUPERVISOR_HPP_
13 #define INCLUDE_DISTORTOS_INTERNAL_SCHEDULER_SOFTWARETIMERSUPERVISOR_HPP_
14 
16 
17 namespace distortos
18 {
19 
20 namespace internal
21 {
22 
25 {
26 public:
27 
33  activeList_{}
34  {
35 
36  }
37 
44  void add(SoftwareTimerControlBlock& softwareTimerControlBlock);
45 
55 
56 private:
57 
60 };
61 
62 } // namespace internal
63 
64 } // namespace distortos
65 
66 #endif // INCLUDE_DISTORTOS_INTERNAL_SCHEDULER_SOFTWARETIMERSUPERVISOR_HPP_
std::chrono::time_point< TickClock > time_point
basic time_point type of clock
Definition: TickClock.hpp:42
Top-level namespace of distortos project.
constexpr SoftwareTimerSupervisor()
SoftwareTimerControlBlock&#39;s constructor.
Definition: SoftwareTimerSupervisor.hpp:32
SoftwareTimerList activeList_
list of active software timers (waiting for execution)
Definition: SoftwareTimerSupervisor.hpp:59
void tickInterruptHandler(TickClock::time_point timePoint)
Handler of "tick" interrupt.
Definition: SoftwareTimerSupervisor.cpp:33
void add(SoftwareTimerControlBlock &softwareTimerControlBlock)
Adds SoftwareTimerControlBlock to supervisor, effectively starting the software timer.
Definition: SoftwareTimerSupervisor.cpp:28
SoftwareTimerSupervisor class is a supervisor of software timers.
Definition: SoftwareTimerSupervisor.hpp:24
SoftwareTimerControlBlock class is a control block of software timer.
Definition: SoftwareTimerControlBlock.hpp:28
SoftwareTimerList class header.