Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Not using MSG_suspend anymore in the internals
[simgrid.git] / src / msg / private.h
index 6e485d4..d7fa359 100644 (file)
@@ -46,6 +46,10 @@ typedef struct simdata_process {
   int PID;                     /* used for debugging purposes */
   int PPID;                    /* The parent PID */
   m_task_t waiting_task;        
+  int blocked;
+  int suspended;
+  m_host_t put_host;           /* used for debugging purposes */
+  m_channel_t 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 */
@@ -54,7 +58,6 @@ typedef struct simdata_process {
 /************************** Global variables ********************************/
 typedef struct MSG_Global {
   xbt_fifo_t host;
-  xbt_fifo_t link;
   xbt_fifo_t process_to_run;
   xbt_fifo_t process_list;
   int max_channel;
@@ -82,4 +85,8 @@ void __MSG_task_execute(m_process_t process, m_task_t task);
 MSG_error_t __MSG_wait_for_computation(m_process_t process, m_task_t task);
 MSG_error_t __MSG_task_wait_event(m_process_t process, m_task_t task);
 
+MSG_error_t __MSG_process_block(void);
+MSG_error_t __MSG_process_unblock(m_process_t process);
+int __MSG_process_isBlocked(m_process_t process);
+
 #endif