X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/276cb878829b90c459527e9cc5649e662e8e3484..55adab7a8befc268fcb2f71d2df5e04ec5ff2dfb:/src/simix/smx_host.cpp diff --git a/src/simix/smx_host.cpp b/src/simix/smx_host.cpp index 69054e2849..4a695aacac 100644 --- a/src/simix/smx_host.cpp +++ b/src/simix/smx_host.cpp @@ -173,7 +173,7 @@ SIMIX_execution_start(smx_actor_t issuer, const char* name, double flops_amount, exec->surf_exec = issuer->host->pimpl_cpu->execution_start(flops_amount); exec->surf_exec->setData(exec.get()); - exec->surf_exec->setPriority(priority); + exec->surf_exec->setSharingWeight(priority); if (bound > 0) static_cast(exec->surf_exec)->setBound(bound); @@ -234,7 +234,7 @@ void SIMIX_execution_set_priority(smx_activity_t synchro, double priority) simgrid::kernel::activity::ExecImplPtr exec = boost::static_pointer_cast(synchro); if(exec->surf_exec) - exec->surf_exec->setPriority(priority); + exec->surf_exec->setSharingWeight(priority); } void SIMIX_execution_set_bound(smx_activity_t synchro, double bound)