Searched refs:ScopeGuard (Results 1 – 4 of 4) sorted by relevance
27 class ScopeGuard {29 ScopeGuard(F&& f) : f_(std::forward<F>(f)), active_(true) {} in ScopeGuard() function31 ScopeGuard(ScopeGuard&& that) noexcept : f_(std::move(that.f_)), active_(that.active_) { in ScopeGuard() function36 ScopeGuard(ScopeGuard<Functor>&& that) : f_(std::move(that.f_)), active_(that.active_) { in ScopeGuard() function40 ~ScopeGuard() { in ~ScopeGuard()44 ScopeGuard() = delete;45 ScopeGuard(const ScopeGuard&) = delete;46 void operator=(const ScopeGuard&) = delete;47 void operator=(ScopeGuard&& that) = delete;55 friend class ScopeGuard;[all …]
52 std::vector<android::base::ScopeGuard<std::function<void()>>> scopeguards; in TEST()
496 const android::base::ScopeGuard attrGuard = [&] { posix_spawnattr_destroy(&attr); }; in startClatd()512 const android::base::ScopeGuard faGuard = [&] { posix_spawn_file_actions_destroy(&fa); }; in startClatd()
366 auto guard = android::base::ScopeGuard(std::bind(avb_free, descriptors)); in findDescriptor()