Home
last modified time | relevance | path

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

/system/core/base/include/android-base/
Dscopeguard.h27 class ScopeGuard {
29 ScopeGuard(F&& f) : f_(std::forward<F>(f)), active_(true) {} in ScopeGuard() function
31 ScopeGuard(ScopeGuard&& that) noexcept : f_(std::move(that.f_)), active_(that.active_) { in ScopeGuard() function
36 ScopeGuard(ScopeGuard<Functor>&& that) : f_(std::move(that.f_)), active_(that.active_) { in ScopeGuard() function
40 ~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 …]
/system/core/base/
Dscopeguard_test.cpp52 std::vector<android::base::ScopeGuard<std::function<void()>>> scopeguards; in TEST()
/system/netd/server/
DClatdController.cpp496 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()
/system/apex/apexd/
Dapex_file.cpp366 auto guard = android::base::ScopeGuard(std::bind(avb_free, descriptors)); in findDescriptor()