15 #include <vsg/core/Inherit.h>
27 void set(
bool flag) noexcept { _active.exchange(flag); }
30 bool active() const noexcept {
return _active; }
33 bool cancel() const noexcept {
return !_active; }
38 std::atomic_bool _active;
ActivityStatus provides atomic management of whether threads watching this ActivityStatus object shou...
Definition: ActivityStatus.h:22
bool active() const noexcept
return true if the caller should continue with current activity or false if they should be canceled
Definition: ActivityStatus.h:30
bool cancel() const noexcept
return true if the caller should cancel current activity
Definition: ActivityStatus.h:33