SigFn
|
Classes | |
class | exception |
sigfn exception More... | |
Typedefs | |
typedef std::function< void(int)> | handler_function |
signal handler function object type | |
Functions | |
DLL_EXPORT void | handle (int signum, const handler_function &handler_function) |
attach handler to specific signal using copy semantics | |
DLL_EXPORT void | handle (int signum, handler_function &&handler_function) |
attach handler to specific signal using move semantics | |
DLL_EXPORT void | ignore (int signum) |
ignore a specific signal | |
DLL_EXPORT void | reset (int signum) |
reset a specific signal to its default behavior | |
Variables | |
const std::string | INVALID_SIGNUM = "sigfn: invalid signal code" |
const std::string | INVALID_HANDLER = "sigfn: invalid signal handler" |
typedef std::function<void(int)> sigfn::handler_function |
signal handler function object type
signum | signal number |
DLL_EXPORT void sigfn::handle | ( | int | signum, |
const handler_function & | handler_function ) |
attach handler to specific signal using copy semantics
signum | signal to be handled |
handler_function | function object associated with this signal |
DLL_EXPORT void sigfn::handle | ( | int | signum, |
handler_function && | handler_function ) |
attach handler to specific signal using move semantics
signum | signal to be handled |
handler_function | function object associated with this signal |
DLL_EXPORT void sigfn::ignore | ( | int | signum | ) |
ignore a specific signal
signum | signal to be ignored |
DLL_EXPORT void sigfn::reset | ( | int | signum | ) |
reset a specific signal to its default behavior
signum | signal to be reset |
const std::string sigfn::INVALID_HANDLER = "sigfn: invalid signal handler" |
const std::string sigfn::INVALID_SIGNUM = "sigfn: invalid signal code" |