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)) { in PrepareMonitoring() 276 if (!loop->AddSignalEvent(SIGHUP, exit_loop_callback)) { in PrepareMonitoring()
|
D | cmd_stat.cpp | 567 auto exit_loop_callback = [loop]() { return loop->ExitLoop(); }; in Run() local 568 if (!loop->AddSignalEvents({SIGCHLD, SIGINT, SIGTERM, SIGHUP}, exit_loop_callback)) { in Run() 572 if (!loop->AddReadEvent(stop_signal_fd_, exit_loop_callback)) { in Run() 577 if (!loop->AddPeriodicEvent(SecondToTimeval(duration_in_sec_), exit_loop_callback)) { in Run()
|
D | cmd_record.cpp | 592 auto exit_loop_callback = [loop]() { return loop->ExitLoop(); }; in PrepareRecording() local 593 if (!loop->AddSignalEvents({SIGCHLD, SIGINT, SIGTERM}, exit_loop_callback)) { in PrepareRecording() 599 if (!loop->AddSignalEvent(SIGHUP, exit_loop_callback)) { in PrepareRecording() 604 if (!loop->AddReadEvent(stop_signal_fd_, exit_loop_callback)) { in PrepareRecording()
|