msg_global->max_channel = 0;
msg_global->PID = 1;
- SIMIX_function_register_process_create(_MSG_process_create_with_env_from_SIMIX);
+ SIMIX_function_register_process_create(_MSG_process_create_from_SIMIX);
SIMIX_function_register_process_cleanup(__MSG_process_cleanup);
SIMIX_function_register_process_kill(_MSG_process_kill_from_SIMIX);
}
return;
}
-/* This function creates a MSG process. It has the prototype by SIMIX_function_register_process_create */
+/* This function creates a MSG process. It has the prototype enforced by SIMIX_function_register_process_create */
void *_MSG_process_create_from_SIMIX(const char *name,
- xbt_main_func_t code, void *data,
- char *hostname, int argc, char **argv)
-{
- m_host_t host = MSG_get_host_by_name(hostname);
- return (void *) MSG_process_create_with_arguments(name, code, data, host,
- argc, argv);
-}
-
-/* This function creates a MSG process with properties. It has the prototype by SIMIX_function_register_process_create */
-void *_MSG_process_create_with_env_from_SIMIX(const char *name,
xbt_main_func_t code, void *data,
char *hostname, int argc, char **argv, xbt_dict_t properties)
{
m_host_t host = MSG_get_host_by_name(hostname);
return (void *) MSG_process_create_with_environment(name, code, data, host,
- argc, argv,properties);
+ argc, argv,properties);
}
-
/** \ingroup m_process_management
* \brief Creates and runs a new #m_process_t.
void __MSG_process_cleanup(void *arg);
void *_MSG_process_create_from_SIMIX(const char *name,
xbt_main_func_t code, void *data,
- char * hostname, int argc, char **argv);
-void *_MSG_process_create_with_env_from_SIMIX(const char *name,
- xbt_main_func_t code, void *data,
- char *hostname, int argc, char **argv, xbt_dict_t properties);
+ char * hostname, int argc, char **argv, xbt_dict_t properties);
void _MSG_process_kill_from_SIMIX(void *p);