Class TimerEventHandler

Inheritance Relationships

Base Type

Class Documentation

class TimerEventHandler : public agnocast::EpollEventHandler

Public Functions

inline TimerEventHandler(const pid_t my_pid, std::mutex *ready_agnocast_executables_mutex, std::vector<AgnocastExecutable> *ready_agnocast_executables)
inline virtual EpollEventType get_type() const override
virtual void prepare_epoll(int epoll_fd, const CallbackGroupValidator &validate_callback_group) override

Configures event-specific settings, such as adding events to epoll.

Parameters:
  • epoll_fd – The file descriptor for the epoll instance.

  • validate_callback_group – A function that takes a callback group and determines whether the entities belonging to that group are under its management.

virtual void handle(EpollEventLocalID event_local_id) override

Invoked when an event belonging to this event type occurs.

Parameters:

event_local_id – The local ID used to identify the specific event.