void create_maestro(std::function<void()> code)
{
smx_actor_t maestro = nullptr;
- /* Create maestro process and intilialize it */
+ /* Create maestro process and initialize it */
maestro = new simgrid::simix::ActorImpl();
maestro->pid = simix_process_maxpid++;
maestro->ppid = -1;
*/
void SIMIX_process_yield(smx_actor_t self)
{
- XBT_DEBUG("Yield process '%s'", self->name.c_str());
+ XBT_DEBUG("Yield actor '%s'", self->cname());
/* Go into sleep and return control to maestro */
self->context->suspend();
if (name == nullptr)
name = "";
smx_actor_t self = SIMIX_process_self();
- return simgrid::simix::kernelImmediate([&] {
+ return simgrid::simix::kernelImmediate([name, code, data, host, kill_time, properties, auto_restart, self] {
return SIMIX_process_create(name, std::move(code), data, host, kill_time, properties, auto_restart, self);
});
}