Home
last modified time | relevance | path

Searched refs:active_ (Results 1 – 1 of 1) sorted by relevance

/system/libbase/include/android-base/
Dscopeguard.h29 ScopeGuard(F&& f) : f_(std::forward<F>(f)), active_(true) {} in ScopeGuard()
31 ScopeGuard(ScopeGuard&& that) noexcept : f_(std::move(that.f_)), active_(that.active_) { in ScopeGuard()
32 that.active_ = false; in ScopeGuard()
36 ScopeGuard(ScopeGuard<Functor>&& that) : f_(std::move(that.f_)), active_(that.active_) { in ScopeGuard()
37 that.active_ = false; in ScopeGuard()
41 if (active_) f_(); in ~ScopeGuard()
49 void Disable() { active_ = false; } in Disable()
51 bool active() const { return active_; } in active()
58 bool active_; variable