Searched refs:make_scope_guard (Results 1 – 4 of 4) sorted by relevance
26 auto scopeguard = android::base::make_scope_guard([&guarded_var] { guarded_var = false; }); in TEST()34 auto scopeguard = android::base::make_scope_guard([&guarded_var] { guarded_var = false; }); in TEST()42 auto scopeguard = android::base::make_scope_guard([&guarded_var] { guarded_var = false; }); in TEST()
53 ScopeGuard<T> make_scope_guard(T f) { in make_scope_guard() function
41 android::base::make_scope_guard([&barrier]() { pthread_barrier_destroy(&barrier); }); in WriteFromMultipleThreads()
51 using android::base::make_scope_guard;1173 auto reaper = make_scope_guard([pid] { TEMP_FAILURE_RETRY(waitpid(pid, nullptr, WNOHANG)); }); in ReapOneProcess()