X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/21f6e059a47df7875f1dacf26ca1eb854f4e887b..a707ad979be7c88d7581f403661c67598d320d55:/src/s4u/s4u_Actor.cpp diff --git a/src/s4u/s4u_Actor.cpp b/src/s4u/s4u_Actor.cpp index 605a4c687f..ce00aafa29 100644 --- a/src/s4u/s4u_Actor.cpp +++ b/src/s4u/s4u_Actor.cpp @@ -358,6 +358,10 @@ void parallel_execute(const std::vector& hosts, const std::vectorwait(); } +void thread_execute(s4u::Host* host, double flops_amount, int thread_count) +{ + Exec::init()->set_flops_amount(flops_amount)->set_host(host)->set_thread_count(thread_count)->wait(); +} ExecPtr exec_init(double flops_amount) { return Exec::init()->set_flops_amount(flops_amount)->set_host(get_host());