Electroneum
Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
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
More...
 

Static Private Member Functions

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

Static Private Attributes

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

Detailed Description

Defines a signal handler for win32 and *nix.

Member Function Documentation

◆ handle_signal()

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

calles m_handler

◆ install()

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

installs a signal handler

◆ posix_handler()

static 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: