11 #ifndef WRENCH_COMPUTETHREADTEST_H
12 #define WRENCH_COMPUTETHREADTEST_H
14 #include <wrench/simgrid_S4U_util/S4U_Mailbox.h>
15 #include "wrench/simgrid_S4U_util/S4U_Simulation.h"
16 #include "helper_services/standard_job_executor/StandardJobExecutorMessage.h"
40 void cleanup(
bool has_returned_from_main,
int return_value)
override;
46 std::string reply_mailbox;
55 #endif //WRENCH_COMPUTETHREADTEST_H
ComputeThread(std::string hostname, double flops, std::string reply_mailbox)
Constructor.
Definition: ComputeThread.cpp:26
int main() override
The main method of the compute thread.
Definition: ComputeThread.cpp:37
void cleanup(bool has_returned_from_main, int return_value) override
Cleanup method that overrides the base method and does nothing as a compute thread does not need to i...
Definition: ComputeThread.cpp:66
std::string hostname
The name of the host on which the daemon is running.
Definition: S4U_Daemon.h:51
A one-shot service that simulates a CPU-bound thread that performs a given number of flops and then r...
Definition: ComputeThread.h:32
void kill()
Terminate (brutally) the compute thread.
Definition: ComputeThread.cpp:55
A service that can be added to the simulation and that can be used by a WMS when executing a workflow...
Definition: Service.h:26