event/SignalMonitor: add noexcept

This commit is contained in:
Max Kellermann 2020-10-13 17:25:53 +02:00
parent fadc03df21
commit 329382c1da
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class EventLoop;
#include "util/BindMethod.hxx"
typedef BoundMethod<void()> SignalHandler;
typedef BoundMethod<void() noexcept> SignalHandler;
/**
* Initialise the signal monitor subsystem.

View File

@ -26,7 +26,7 @@
#include <signal.h>
static void
HandleShutdownSignal(void *ctx)
HandleShutdownSignal(void *ctx) noexcept
{
auto &loop = *(EventLoop *)ctx;
loop.Break();