Home
last modified time | relevance | path

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

/system/core/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.h91 alarm_ = std::make_unique<ScopedAlarm>(timeout_, [&]() { in Disable()
103 std::unique_ptr<ScopedAlarm> alarm_;
/system/core/libmemunreachable/tests/
DAllocator_test.cpp24 std::function<void()> ScopedAlarm::func_;