Home
last modified time | relevance | path

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

/system/memory/libmemunreachable/
DScopedAlarm.h28 class ScopedAlarm {
30 ScopedAlarm(std::chrono::microseconds us, std::function<void()> func) { in ScopedAlarm() function
34 act.sa_handler = [](int) { ScopedAlarm::func_(); }; in ScopedAlarm()
43 ~ScopedAlarm() { in ~ScopedAlarm()
DScopedDisableMalloc.h90 alarm_ = std::make_unique<ScopedAlarm>(timeout_, [&]() { in Disable()
102 std::unique_ptr<ScopedAlarm> alarm_;
/system/memory/libmemunreachable/tests/
DAllocator_test.cpp24 std::function<void()> ScopedAlarm::func_;