/* Simulator data for MSG */
simdata->m_host = host;
simdata->data = data;
- simdata->last_errno = MSG_OK;
/* Let's create the process: SIMIX may decide to start it right now,
* even before returning the flow control to us */
return process;
}
-static int MSG_maestro(int argc, char** argv)
-{
- int res = MSG_main();
- return res;
-}
-
/* Become a process in the simulation
*
* Currently this can only be called by the main thread (once) and only work with some thread factories
return host->cname();
}
-void _SIMIX_host_free_process_arg(void *data)
-{
- smx_process_arg_t arg = *(static_cast<smx_process_arg_t*>(data));
- delete arg;
-}
/**
* \brief Add a process to the list of the processes that the host will restart when it comes back
* This function add a process to the list of the processes that will be restarted when the host comes
typedef simgrid::simix::Host s_smx_host_priv_t;
SG_BEGIN_DECL()
-XBT_PRIVATE void _SIMIX_host_free_process_arg(void *);
-
XBT_PRIVATE void SIMIX_host_add_auto_restart_process(sg_host_t host,
const char *name,
std::function<void()> code,