rotor
Event loop friendly C++ actor micro-framework
 
Loading...
Searching...
No Matches
rotor::timer_handler_base_t Struct Referenceabstract

Base class for timer handler. More...

#include <timer_handler.hpp>

Inheritance diagram for rotor::timer_handler_base_t:
rotor::timer_handler_t< Object, Method >

Public Member Functions

 timer_handler_base_t (actor_base_t *owner_, request_id_t request_id_) noexcept
 constructs timer handler from non-owning pointer to timer and timer request id
 
virtual void trigger (bool cancelled) noexcept=0
 an action when timer was triggered or cancelled
 

Public Attributes

actor_base_towner
 actor, which "owns" timer, i.e. where "start_timer" was invoked"
 
request_id_t request_id
 timer identity (aka timer request id)
 

Detailed Description

Base class for timer handler.

Member Function Documentation

◆ trigger()

virtual void rotor::timer_handler_base_t::trigger ( bool  cancelled)
pure virtualnoexcept

an action when timer was triggered or cancelled

Implemented in rotor::timer_handler_t< Object, Method >.


The documentation for this struct was generated from the following file: