Searched refs:StopperResult (Results 1 – 8 of 8) sorted by relevance
34 static StopperResult StopModemSimulator(int id) { in StopModemSimulator()40 return StopperResult::kStopFailure; in StopModemSimulator()46 return StopperResult::kStopFailure; in StopModemSimulator()52 return StopperResult::kStopFailure; in StopModemSimulator()57 return StopperResult::kStopFailure; in StopModemSimulator()60 return StopperResult::kStopSuccess; in StopModemSimulator()
255 return StopperResult::kStopFailure; in Commands()
273 StopperResult KillSubprocess(Subprocess* subprocess) { in KillSubprocess()287 return StopperResult::kStopSuccess; in KillSubprocess()291 return StopperResult::kStopFailure; in KillSubprocess()293 return StopperResult::kStopSuccess; in KillSubprocess()296 SubprocessStopper KillSubprocessFallback(std::function<StopperResult()> nice) { in KillSubprocessFallback()303 if (nice_result == StopperResult::kStopFailure) { in KillSubprocessFallback()305 return harsh_result == StopperResult::kStopSuccess in KillSubprocessFallback()306 ? StopperResult::kStopCrash in KillSubprocessFallback()
49 enum class StopperResult { enum56 using SubprocessStopper = std::function<StopperResult(Subprocess*)>;58 StopperResult KillSubprocess(Subprocess* subprocess);61 SubprocessStopper KillSubprocessFallback(std::function<StopperResult()>);91 StopperResult Stop() { return stopper_(this); } in Stop()
53 StopperResult Stop() { in Stop()61 return StopperResult::kStopFailure; in Stop()69 return StopperResult::kStopFailure; in Stop()80 return StopperResult::kStopSuccess; in Stop()
66 return stop_cmd.Start().Wait() == 0 ? StopperResult::kStopSuccess in AddControlSocket()67 : StopperResult::kStopFailure; in AddControlSocket()
235 return res ? StopperResult::kStopSuccess : StopperResult::kStopFailure; in BuildVhostUserGpu()706 return res ? StopperResult::kStopSuccess : StopperResult::kStopFailure; in StartCommands()
137 if (stop_result == StopperResult::kStopFailure) { in StopSubprocesses()147 if (stop_result == StopperResult::kStopCrash) { in StopSubprocesses()