event/DeferEvent: add "noexcept"
This commit is contained in:
parent
43dccbd45d
commit
593d82c6a9
@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user