-typedef struct sim_data_process {
- s_xbt_swag_hookup_t host_hookup; /* link to other process running on the same location */
- m_host_t host; /* the host on which the process is running */
- xbt_context_t context; /* the context that executes the scheduler fonction */
- int PID; /* used for debugging purposes */
- int PPID; /* The parent PID */
- m_task_t waiting_task; /* used for debugging purposes */
- m_host_t put_host; /* used for debugging purposes */
- int put_channel; /* used for debugging purposes */
- int argc; /* arguments number if any */
- char **argv; /* arguments table if any */
- MSG_error_t last_errno; /* the last value returned by a MSG_function */
-} s_sim_data_process_t;
+ typedef struct simdata_process {
+ m_host_t m_host; /* the host on which the process is running */
+ smx_process_t s_process;
+ int PID; /* used for debugging purposes */
+ int PPID; /* The parent PID */
+ m_host_t put_host; /* used for debugging purposes */
+ m_channel_t put_channel; /* used for debugging purposes */
+ smx_action_t waiting_action;
+ int argc; /* arguments number if any */
+ char **argv; /* arguments table if any */
+ MSG_error_t last_errno; /* the last value returned by a MSG_function */
+ } s_simdata_process_t;
+
+ typedef struct process_arg {
+ const char *name;
+ xbt_main_func_t code;
+ void *data;
+ m_host_t m_host;
+ int argc;
+ char **argv;
+ double kill_time;
+ } s_process_arg_t, *process_arg_t;