MPD: event/SignalMonitor.hxx File Reference

MPD 0.20.15

Typedefs | Functions
SignalMonitor.hxx File Reference
`#include "check.h"`
`#include "util/BindMethod.hxx"`
Include dependency graph for SignalMonitor.hxx:

Go to the source code of this file.

## Typedefs
typedef BoundMethod< void()> | SignalHandler

## Functions
void | SignalMonitorInit (EventLoop &loop)
| Initialise the signal monitor subsystem. More...
void | SignalMonitorFinish ()
| Deinitialise the signal monitor subsystem. More...
void | SignalMonitorRegister (int signo, SignalHandler handler)
| Register a handler for the specified signal. More...

## Typedef Documentation

## ◆ SignalHandler

typedef BoundMethod<void()> SignalHandler

Definition at line 25 of file SignalMonitor.hxx.

## Function Documentation

## ◆ SignalMonitorFinish()

void SignalMonitorFinish | ( |  | ) |

Deinitialise the signal monitor subsystem.

## ◆ SignalMonitorInit()

void SignalMonitorInit | ( | EventLoop & | loop | ) |

Initialise the signal monitor subsystem.

## ◆ SignalMonitorRegister()

void SignalMonitorRegister | ( | int | signo,
|  | SignalHandler | handler
| ) |  |

Register a handler for the specified signal.

The handler will be invoked in a safe context.