hmbdc
simplify-high-performance-messaging-programming
Static Public Member Functions | List of all members
hmbdc::os::HandleSignals Struct Reference

provides functions to handle signals More...

#include <Signals.hpp>

Static Public Member Functions

static void onTermIntDo (std::function< void()> doThis)
 specfy what to do when SIGTERM or SIGINT is received More...
 

Detailed Description

provides functions to handle signals

Member Function Documentation

◆ onTermIntDo()

static void hmbdc::os::HandleSignals::onTermIntDo ( std::function< void()>  doThis)
inlinestatic

specfy what to do when SIGTERM or SIGINT is received

will install signal handlers - might make previous installed handlers not working, so don't call this more than once

Parameters
doThisa function<void()> or more lkely a lambda specifying what to do
Examples:
ipc-market-data-propagate.cpp, rmcast-cp.cpp, server-cluster.cpp, and udpcast-sniff.cpp.

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