X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b8df87e176f27b25534f27d7e240defa32ca35bc..ecd7e9547367c8d7117115ce816538fdfeb0e0ea:/src/s4u/s4u_Host.cpp diff --git a/src/s4u/s4u_Host.cpp b/src/s4u/s4u_Host.cpp index 24163be788..80000607cb 100644 --- a/src/s4u/s4u_Host.cpp +++ b/src/s4u/s4u_Host.cpp @@ -295,6 +295,7 @@ void Host::execute(double flops) { execute(flops, 1.0 /* priority */); } + void Host::execute(double flops, double priority) { this_actor::exec_init(flops)->set_host(this)->set_priority(1 / priority)->start()->wait();