- 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)))
- ->set_host(host)
- ->start(flops_amount, priority, bound);
+ double sharing_penalty, double bound, sg_host_t host)
+{
+ return simgrid::simix::simcall([name, category, flops_amount, sharing_penalty, bound, host] {
+ simgrid::kernel::activity::ExecImpl* exec = new simgrid::kernel::activity::ExecImpl();
+ (*exec)
+ .set_name(name)
+ .set_tracing_category(category)
+ .set_host(host)
+ .set_sharing_penalty(sharing_penalty)
+ .set_bound(bound)
+ .set_flops_amount(flops_amount)
+ .start();
+ return simgrid::kernel::activity::ExecImplPtr(exec);