Commit 593d82c6 authored by Max Kellermann's avatar Max Kellermann

event/DeferEvent: add "noexcept"

parent 43dccbd4
...@@ -30,7 +30,7 @@ ...@@ -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: ...@@ -42,7 +42,7 @@ public:
using DeferredMonitor::Cancel; using DeferredMonitor::Cancel;
private: private:
void RunDeferred() override { void RunDeferred() noexcept override {
callback(); callback();
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment