diff options
author | Max Kellermann <max@duempel.org> | 2013-10-18 08:44:40 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-18 08:44:40 +0200 |
commit | 43863a70c87c80e3a15315f561c3a247b27c81fa (patch) | |
tree | f75f3e2590225876cae799fe7b930b4d92a43c02 /src/event/SignalMonitor.hxx | |
parent | bd5a70c71285265e59685b7b55cf31069785a58f (diff) |
SignalMonitor: add SignalMonitorGetEventLoop()
Eliminate the global variable "shutdown_loop".
Diffstat (limited to 'src/event/SignalMonitor.hxx')
-rw-r--r-- | src/event/SignalMonitor.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/event/SignalMonitor.hxx b/src/event/SignalMonitor.hxx index 94ab0aa30..1ecccd40b 100644 --- a/src/event/SignalMonitor.hxx +++ b/src/event/SignalMonitor.hxx @@ -41,6 +41,13 @@ void SignalMonitorFinish(); /** + * Obtain a reference to the #EventLoop that was passed to + * SignalMonitorInit(). + */ +EventLoop & +SignalMonitorGetEventLoop(); + +/** * Register a handler for the specified signal. The handler will be * invoked in a safe context. */ |