Searched refs:exit_loop_callback (Results 1 – 3 of 3) sorted by relevance
/system/extras/simpleperf/ |
D | cmd_monitor.cpp | 268 auto exit_loop_callback = [loop]() { return loop->ExitLoop(); }; in PrepareMonitoring() local 269 if (!loop->AddSignalEvents({SIGCHLD, SIGINT, SIGTERM}, exit_loop_callback, IOEventHighPriority)) { in PrepareMonitoring() 276 if (!loop->AddSignalEvent(SIGHUP, exit_loop_callback, IOEventHighPriority)) { in PrepareMonitoring()
|
D | cmd_stat.cpp | 574 auto exit_loop_callback = [loop]() { return loop->ExitLoop(); }; in Run() local 575 if (!loop->AddSignalEvents({SIGCHLD, SIGINT, SIGTERM, SIGHUP}, exit_loop_callback)) { in Run() 579 if (!loop->AddReadEvent(stop_signal_fd_, exit_loop_callback)) { in Run() 584 if (!loop->AddPeriodicEvent(SecondToTimeval(duration_in_sec_), exit_loop_callback)) { in Run()
|
D | cmd_record.cpp | 692 auto exit_loop_callback = [loop]() { return loop->ExitLoop(); }; in PrepareRecording() local 693 if (!loop->AddSignalEvents({SIGCHLD, SIGINT, SIGTERM}, exit_loop_callback, IOEventHighPriority)) { in PrepareRecording() 699 if (!loop->AddSignalEvent(SIGHUP, exit_loop_callback, IOEventHighPriority)) { in PrepareRecording() 704 if (!loop->AddReadEvent(stop_signal_fd_, exit_loop_callback, IOEventHighPriority)) { in PrepareRecording()
|