event/DeferEvent: add "noexcept"

This commit is contained in:
Max Kellermann 2017-11-10 20:55:24 +01:00
parent 43dccbd45d
commit 593d82c6a9

View File

@ -30,7 +30,7 @@
* This class is thread-safe. * This class is thread-safe.
*/ */
class DeferEvent final : DeferredMonitor { class DeferEvent final : DeferredMonitor {
typedef BoundMethod<void()> Callback; typedef BoundMethod<void() noexcept> Callback;
const Callback callback; const Callback callback;
public: public:
@ -42,7 +42,7 @@ public:
using DeferredMonitor::Cancel; using DeferredMonitor::Cancel;
private: private:
void RunDeferred() override { void RunDeferred() noexcept override {
callback(); callback();
} }
}; };