}
}
-/**
- * \brief Creates and runs the maestro process
- */
+/** @brief Creates and runs the maestro process */
void SIMIX_maestro_create(void (*code)(void*), void* data)
{
simgrid::simix::create_maestro(std::bind(code, data));
/* Tracing the process creation */
TRACE_msg_process_create(process->name.c_str(), process->pid, process->host);
- auto context = dynamic_cast<simgrid::simix::AttachContext*>(process->context);
+ auto context = dynamic_cast<simgrid::kernel::context::AttachContext*>(process->context);
if (!context)
xbt_die("Not a suitable context");
void SIMIX_process_detach()
{
- auto context = dynamic_cast<simgrid::simix::AttachContext*>(SIMIX_context_self());
+ auto context = dynamic_cast<simgrid::kernel::context::AttachContext*>(SIMIX_context_self());
if (!context)
xbt_die("Not a suitable context");
// Let maestro ignore we are still alive:
// xbt_swag_remove(context->process(), simix_global->process_list);
- // TODDO, Remove from proces list:
+ // TODO, Remove from proces list:
// xbt_swag_remove(process, sg_host_simix(host)->process_list);
context->attach_stop();
smx_synchro_t SIMIX_process_join(smx_process_t issuer, smx_process_t process, double timeout)
{
smx_synchro_t res = SIMIX_process_sleep(issuer, timeout);
- static_cast<simgrid::kernel::activity::Synchro*>(res)->ref();
+ static_cast<simgrid::kernel::activity::ActivityImpl*>(res)->ref();
SIMIX_process_on_exit(process, (int_f_pvoid_pvoid_t)SIMIX_process_join_finish, res);
return res;
}