aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common/Event.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/common/Event.hpp')
-rw-r--r--include/cru/common/Event.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cru/common/Event.hpp b/include/cru/common/Event.hpp
index 7f7b4dd4..aa8fadbb 100644
--- a/include/cru/common/Event.hpp
+++ b/include/cru/common/Event.hpp
@@ -233,6 +233,8 @@ class EventRevokerGuard {
EventRevoker Release() { return std::move(*revoker_.release()); }
+ void Reset() { revoker_.reset(); }
+
void Reset(EventRevoker&& revoker) {
revoker_.reset(new EventRevoker(std::move(revoker)));
}