Class ShutdownEventHandler

Inheritance Relationships

Base Type

Class Documentation

class ShutdownEventHandler : public agnocast::EpollEventHandler

Shutdown handler used by AgnocastOnlyExecutor to receive shutdown notifications via an eventfd.

Public Functions

ShutdownEventHandler() = default
inline virtual EpollEventType get_type() const override
inline 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.

inline virtual void handle(EpollEventLocalID) override

Invoked when an event belonging to this event type occurs.

Parameters:

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