Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
We need the threads, and they live in the gras lib, not always in the sg one
[simgrid.git] / src / msg_simix / msg_simix_private.h
index 811c1f9..4054b06 100644 (file)
@@ -11,6 +11,7 @@
 #include <stdio.h>
 #include "msg/msg.h"
 #include "simix/simix.h"
+#include "surf/surf.h"
 #include "xbt/fifo.h"
 #include "xbt/dynar.h"
 #include "xbt/swag.h"
@@ -37,6 +38,7 @@ typedef struct simdata_task {
        smx_cond_t cond;                                        
        smx_mutex_t mutex;                              /* Task mutex */
   m_process_t sender;
+  m_process_t receiver;
   m_host_t source;
   double priority;
   double rate;
@@ -57,6 +59,7 @@ typedef struct simdata_process {
   int PPID;                    /* The parent PID */
   m_host_t put_host;           /* used for debugging purposes */
   m_channel_t put_channel;     /* used for debugging purposes */
+       m_task_t waiting_task;
   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 */