node::KernelNotifications::KernelNotifications

Construct the notification handler.

Synopsis

Declared in <node/kernel_notifications.h>

KernelNotifications(
    std::function<bool()> const& shutdown_request,
    std::atomic<int>& exit_status,
    node::Warnings& warnings);

Parameters

NameDescription
shutdown_requestCallback used to request a node shutdown.
exit_statusAtomic exit status set when a fatal error triggers shutdown.
warningsWarnings subsystem that node warnings are forwarded to.