Monero
Loading...
Searching...
No Matches
tools::signal_handler Class Reference

Defines a signal handler for win32 and *nix. More...

#include <util.h>

Static Public Member Functions

template<typename T>
static bool install (T t)
 installs a signal handler

Static Private Member Functions

static void posix_handler (int type)
 handler for NIX
static void handle_signal (int type)
 calles m_handler

Static Private Attributes

static std::function< void(int)> m_handler
 where the installed handler is stored

Detailed Description

Defines a signal handler for win32 and *nix.

Member Function Documentation

◆ handle_signal()

void tools::signal_handler::handle_signal ( int type)
inlinestaticprivate

calles m_handler

◆ install()

template<typename T>
bool tools::signal_handler::install ( T t)
inlinestatic

installs a signal handler

◆ posix_handler()

void tools::signal_handler::posix_handler ( int type)
inlinestaticprivate

handler for NIX

Member Data Documentation

◆ m_handler

std::function< void(int)> tools::signal_handler::m_handler
staticprivate

where the installed handler is stored


The documentation for this class was generated from the following files: