distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
distortos::internal::SoftwareTimerSupervisor Class Reference

SoftwareTimerSupervisor class is a supervisor of software timers. More...

#include "distortos/internal/scheduler/SoftwareTimerSupervisor.hpp"

Collaboration diagram for distortos::internal::SoftwareTimerSupervisor:
[legend]

Public Member Functions

constexpr SoftwareTimerSupervisor ()
 SoftwareTimerControlBlock's constructor. More...
 
void add (SoftwareTimerControlBlock &softwareTimerControlBlock)
 Adds SoftwareTimerControlBlock to supervisor, effectively starting the software timer. More...
 
void tickInterruptHandler (TickClock::time_point timePoint)
 Handler of "tick" interrupt. More...
 

Private Attributes

SoftwareTimerList activeList_
 list of active software timers (waiting for execution) More...
 

Detailed Description

SoftwareTimerSupervisor class is a supervisor of software timers.

Constructor & Destructor Documentation

◆ SoftwareTimerSupervisor()

constexpr distortos::internal::SoftwareTimerSupervisor::SoftwareTimerSupervisor ( )
inline

SoftwareTimerControlBlock's constructor.

Member Function Documentation

◆ add()

void distortos::internal::SoftwareTimerSupervisor::add ( SoftwareTimerControlBlock softwareTimerControlBlock)

Adds SoftwareTimerControlBlock to supervisor, effectively starting the software timer.

Parameters
[in]softwareTimerControlBlockis the SoftwareTimerControlBlock being added/started
Here is the call graph for this function:
Here is the caller graph for this function:

◆ tickInterruptHandler()

void distortos::internal::SoftwareTimerSupervisor::tickInterruptHandler ( TickClock::time_point  timePoint)

Handler of "tick" interrupt.

Note
this must not be called by user code
Parameters
[in]timePointis the current time point
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ activeList_

SoftwareTimerList distortos::internal::SoftwareTimerSupervisor::activeList_
private

list of active software timers (waiting for execution)


The documentation for this class was generated from the following files: