Lines Matching refs:Workload
28 std::unique_ptr<Workload> Workload::CreateWorkload(const std::vector<std::string>& args) { in CreateWorkload()
29 std::unique_ptr<Workload> workload(new Workload(args, std::function<void ()>())); in CreateWorkload()
36 std::unique_ptr<Workload> Workload::CreateWorkload(const std::function<void ()>& function) { in CreateWorkload()
37 std::unique_ptr<Workload> workload(new Workload(std::vector<std::string>(), function)); in CreateWorkload()
44 bool Workload::RunCmd(const std::vector<std::string>& args, bool report_error) { in RunCmd()
54 Workload::Workload(const std::vector<std::string>& args, const std::function<void ()>& function) in Workload() function in Workload
66 Workload::~Workload() { in ~Workload()
68 if (!Workload::WaitChildProcess(false, false, nullptr)) { in ~Workload()
70 Workload::WaitChildProcess(true, true, nullptr); in ~Workload()
81 bool Workload::CreateNewProcess() { in CreateNewProcess()
123 void Workload::ChildProcessFn(int start_signal_fd, int exec_child_fd) { in ChildProcessFn()
155 bool Workload::Start() { in Start()
177 bool Workload::WaitChildProcess(int* exit_code) { in WaitChildProcess()
181 bool Workload::WaitChildProcess(bool wait_forever, bool is_child_killed, int* exit_code) { in WaitChildProcess()