#include <string>
#include <vector>
-#include <base/macros.h>
+#include <android-base/macros.h>
class Workload {
private:
NotYetCreateNewProcess,
NotYetStartNewProcess,
Started,
- Finished,
};
public:
~Workload();
bool Start();
- bool IsFinished();
- void WaitFinish();
pid_t GetPid() {
return work_pid_;
}
}
bool CreateNewProcess();
- void WaitChildProcess(bool no_hang);
+ bool WaitChildProcess(bool wait_forever);
WorkState work_state_;
std::vector<std::string> args_;