X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/11932d0967b5a5bc7a5c0e8a0b34778dc4c5c0cd..a5c102f3397e8112b97c27981bfdbcaac76d79f6:/src/simix/libsmx.cpp diff --git a/src/simix/libsmx.cpp b/src/simix/libsmx.cpp index 4909007cbc..df3df95899 100644 --- a/src/simix/libsmx.cpp +++ b/src/simix/libsmx.cpp @@ -384,8 +384,9 @@ smx_activity_t simcall_execution_start(const std::string& name, const std::strin double priority, double bound, sg_host_t host) { return simgrid::simix::simcall([name, category, flops_amount, priority, bound, host] { - return simgrid::kernel::activity::ExecImplPtr( - new simgrid::kernel::activity::ExecImpl(std::move(name), std::move(category))) + return simgrid::kernel::activity::ExecImplPtr(new simgrid::kernel::activity::ExecImpl()) + ->set_name(name) + ->set_tracing_category(category) ->set_host(host) ->start(flops_amount, priority, bound); }); @@ -424,7 +425,8 @@ smx_activity_t simcall_execution_parallel_start(const std::string& name, int hos if (bytes_amount != nullptr) bytes_parallel_amount = std::vector(bytes_amount, bytes_amount + host_nb * host_nb); return simgrid::simix::simcall([name, hosts, flops_parallel_amount, bytes_parallel_amount, timeout] { - return simgrid::kernel::activity::ExecImplPtr(new simgrid::kernel::activity::ExecImpl(std::move(name), "")) + return simgrid::kernel::activity::ExecImplPtr(new simgrid::kernel::activity::ExecImpl()) + ->set_name(name) ->set_timeout(timeout) ->start(hosts, flops_parallel_amount, bytes_parallel_amount); });