Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill 2 unused fields in MSG_Global o_O
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 16 Nov 2016 22:36:21 +0000 (23:36 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 16 Nov 2016 22:36:21 +0000 (23:36 +0100)
src/msg/msg_global.cpp
src/msg/msg_private.h

index 9a95300..dc72b64 100644 (file)
@@ -122,11 +122,7 @@ int MSG_process_killall(int reset_PIDs)
 {
   simcall_process_killall(reset_PIDs);
 
-  if (reset_PIDs > 0)
-    msg_global->session++;
-
   return 0;
-
 }
 
 static void MSG_exit() {
index 014d32f..d0c4970 100644 (file)
@@ -120,9 +120,7 @@ XBT_PUBLIC_DATA(const char*) MSG_vm_get_name(msg_vm_t vm);
 
 /************************** Global variables ********************************/
 typedef struct MSG_Global {
-  xbt_fifo_t host;
-  int session;
-  int debug_multiple_use;
+  int debug_multiple_use;       /* whether we want an error message when reusing the same Task for 2 things */
   unsigned long int sent_msg;   /* Total amount of messages sent during the simulation */
   void (*task_copy_callback) (msg_task_t task, msg_process_t src, msg_process_t dst);
   void_f_pvoid_t process_data_cleanup;