Home
last modified time | relevance | path

Searched refs:ScopedSignalHandler (Results 1 – 5 of 5) sorted by relevance

/system/core/libmemunreachable/
DScopedSignalHandler.h32 class ScopedSignalHandler {
34 using Fn = std::function<void(ScopedSignalHandler&, int, siginfo_t*, void*)>;
36 explicit ScopedSignalHandler(Allocator<ScopedSignalHandler> allocator) : signal_(-1) { in ScopedSignalHandler() function
42 ~ScopedSignalHandler() { reset(); } in ~ScopedSignalHandler()
87 DISALLOW_COPY_AND_ASSIGN(ScopedSignalHandler);
DHeapWalker.h67 SIGSEGV, [=](ScopedSignalHandler& handler, int signal, siginfo_t* siginfo, void* uctx) {
71 SIGBUS, [=](ScopedSignalHandler& handler, int signal, siginfo_t* siginfo, void* uctx) {
101 void HandleSegFault(ScopedSignalHandler&, int, siginfo_t*, void*);
114 ScopedSignalHandler sigsegv_handler_;
115 ScopedSignalHandler sigbus_handler_;
DHeapWalker.cpp189 void HeapWalker::HandleSegFault(ScopedSignalHandler& handler, int signal, siginfo_t* si, in HandleSegFault()
210 Allocator<ScopedSignalHandler::SignalFnMap>::unique_ptr ScopedSignalHandler::handler_map_;
/system/connectivity/wificond/
Dmain.cpp48 class ScopedSignalHandler final { class
50 ScopedSignalHandler(android::wificond::LooperBackedEventLoop* event_loop) { in ScopedSignalHandler() function in __anon89a45fc20111::ScopedSignalHandler
55 std::signal(SIGINT, &ScopedSignalHandler::LeaveLoop); in ScopedSignalHandler()
56 std::signal(SIGTERM, &ScopedSignalHandler::LeaveLoop); in ScopedSignalHandler()
59 ~ScopedSignalHandler() { in ~ScopedSignalHandler()
73 DISALLOW_COPY_AND_ASSIGN(ScopedSignalHandler);
77 ScopedSignalHandler::s_event_loop_ = nullptr;
123 ScopedSignalHandler scoped_signal_handler(event_dispatcher.get()); in main()
/system/core/libbacktrace/
Dbacktrace_test.cpp1674 class ScopedSignalHandler { class
1676 ScopedSignalHandler(int signal_number, void (*handler)(int)) : signal_number_(signal_number) { in ScopedSignalHandler() function in ScopedSignalHandler
1682 ScopedSignalHandler(int signal_number, void (*action)(int, siginfo_t*, void*)) in ScopedSignalHandler() function in ScopedSignalHandler
1690 ~ScopedSignalHandler() { sigaction(signal_number_, &old_action_, nullptr); } in ~ScopedSignalHandler()
1712 ScopedSignalHandler ssh(SIGUSR1, BacktraceTest::test_signal_action_); in UnwindThroughSignal()
1716 ScopedSignalHandler ssh(SIGUSR1, BacktraceTest::test_signal_handler_); in UnwindThroughSignal()