diff options
author | crupest <crupest@outlook.com> | 2020-10-28 00:01:30 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-10-28 00:01:30 +0800 |
commit | c7c9c62fd3813a6230a2af7fc8c9882baa426a7f (patch) | |
tree | 4528e624b896907d7b87d12a7bd26be4556ddc06 /include/cru/common/Event.hpp | |
parent | 37e43bbff36dd7f21d0a483eda62509b9bd7aebf (diff) | |
download | cru-c7c9c62fd3813a6230a2af7fc8c9882baa426a7f.tar.gz cru-c7c9c62fd3813a6230a2af7fc8c9882baa426a7f.tar.bz2 cru-c7c9c62fd3813a6230a2af7fc8c9882baa426a7f.zip |
...
Diffstat (limited to 'include/cru/common/Event.hpp')
-rw-r--r-- | include/cru/common/Event.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/cru/common/Event.hpp b/include/cru/common/Event.hpp index 6417bc78..93ab9b7a 100644 --- a/include/cru/common/Event.hpp +++ b/include/cru/common/Event.hpp @@ -232,6 +232,10 @@ class EventRevokerListGuard { return *this; } + void Clear() { event_revoker_guard_list_.clear(); } + + bool IsEmpty() const { return event_revoker_guard_list_.empty(); } + private: std::vector<EventRevokerGuard> event_revoker_guard_list_; }; |