Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rename simdata_process_t into MsgActorExt
[simgrid.git] / src / msg / msg_private.h
index 0f35f3b21f57e9d09590647d28feaa5bc0cf5384..394ed868739a77b42f5bd3b22dc9e7465ddb1840 100644 (file)
@@ -75,15 +75,15 @@ typedef struct simdata_file {
 
 /******************************* Process *************************************/
 
-typedef struct simdata_process {
-  msg_host_t m_host;              /* the host on which the process is running */
-  msg_host_t put_host;            /* used for debugging purposes */
-  smx_activity_t waiting_action;
-  msg_task_t waiting_task;
-  msg_error_t last_errno;       /* the last value returned by a MSG_function */
-
-  void* data;                   /* user data */
-} s_simdata_process_t, *simdata_process_t;
+class MsgActorExt {
+public:
+  msg_host_t m_host; /* the host on which the process is running */
+  smx_activity_t waiting_action = nullptr;
+  msg_task_t waiting_task       = nullptr;
+  msg_error_t last_errno        = MSG_OK; /* the last value returned by a MSG_function */
+
+  void* data = nullptr; /* user data */
+};
 
 typedef struct process_arg {
   const char *name;