+void simcall_execution_set_priority(smx_activity_t exec, double priority)
+{
+ simgrid::simix::simcall([exec, priority] {
+ boost::static_pointer_cast<simgrid::kernel::activity::ExecImpl>(exec)->set_priority(priority);
+ });
+}
+
+void simcall_execution_set_bound(smx_activity_t exec, double bound)
+{
+ simgrid::simix::simcall(
+ [exec, bound] { boost::static_pointer_cast<simgrid::kernel::activity::ExecImpl>(exec)->set_bound(bound); });
+}
+
+smx_activity_t simcall_execution_start(const std::string& name, const std::string& category, double flops_amount,
+ 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), nullptr, host))
+ ->start(flops_amount, priority, bound);
+ });