xbt_assert(std::isfinite(flops_amount), "flops_amount is not finite!");
xbt_assert(std::isfinite(priority), "priority is not finite!");
- return simcall_BODY_execution_start(name, flops_amount, priority, bound, host);
+ return simgrid::simix::kernelImmediate([name, flops_amount, priority, bound, host] {
+ return SIMIX_execution_start(name, flops_amount, priority, bound, host);
+ });
}
/**
xbt_assert(std::isfinite(rate), "rate is not finite!");
- return simcall_BODY_execution_parallel_start(name, host_nb, host_list, flops_amount, bytes_amount, rate, timeout);
+ return simgrid::simix::kernelImmediate([name, host_nb, host_list, flops_amount, bytes_amount, rate, timeout] {
+ return SIMIX_execution_parallel_start(name, host_nb, host_list, flops_amount, bytes_amount, rate, timeout);
+ });
}
/**
if (category == nullptr) {
return;
}
- simcall_BODY_set_category(synchro, category);
+ simgrid::simix::kernelImmediate([synchro, category] { SIMIX_set_category(synchro, category); });
}
/**
*/
smx_cond_t simcall_cond_init()
{
- return simcall_BODY_cond_init();
+ return simgrid::simix::kernelImmediate([] { return new simgrid::kernel::activity::ConditionVariableImpl(); });
}
/**