Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill an unused simcall: comm_get_state
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 5 May 2016 20:02:58 +0000 (22:02 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 5 May 2016 20:02:58 +0000 (22:02 +0200)
include/simgrid/simix.h
src/simix/libsmx.cpp
src/simix/popping_accessors.h
src/simix/popping_bodies.cpp
src/simix/popping_enum.h
src/simix/popping_generated.cpp
src/simix/simcalls.in

index ce3e6c5..e0ec0ed 100644 (file)
@@ -402,7 +402,6 @@ XBT_PUBLIC(int) simcall_comm_testany(xbt_dynar_t comms);
 
 /* Getters and setters */
 XBT_PUBLIC(double) simcall_comm_get_remains(smx_synchro_t comm);
-XBT_PUBLIC(e_smx_state_t) simcall_comm_get_state(smx_synchro_t comm);
 XBT_PUBLIC(void *) simcall_comm_get_src_data(smx_synchro_t comm);
 XBT_PUBLIC(void *) simcall_comm_get_dst_data(smx_synchro_t comm);
 XBT_PUBLIC(smx_process_t) simcall_comm_get_src_proc(smx_synchro_t comm);
index 7924a4f..e052a98 100644 (file)
@@ -893,15 +893,6 @@ double simcall_comm_get_remains(smx_synchro_t comm)
   return simcall_BODY_comm_get_remains(comm);
 }
 
-/**
- * \ingroup simix_comm_management
- *
- */
-e_smx_state_t simcall_comm_get_state(smx_synchro_t comm)
-{
-  return simcall_BODY_comm_get_state(comm);
-}
-
 /**
  * \ingroup simix_comm_management
  *
index fe2c29c..d98bbc2 100644 (file)
@@ -843,19 +843,6 @@ static inline void simcall_comm_get_remains__set__result(smx_simcall_t simcall,
     simcall->result.d = result;
 }
 
-static inline smx_synchro_t simcall_comm_get_state__get__comm(smx_simcall_t simcall) {
-  return (smx_synchro_t) simcall->args[0].dp;
-}
-static inline void simcall_comm_get_state__set__comm(smx_simcall_t simcall, void* arg) {
-    simcall->args[0].dp = arg;
-}
-static inline e_smx_state_t simcall_comm_get_state__get__result(smx_simcall_t simcall){
-    return (e_smx_state_t) simcall->result.i;
-}
-static inline void simcall_comm_get_state__set__result(smx_simcall_t simcall, int result){
-    simcall->result.i = result;
-}
-
 static inline smx_synchro_t simcall_comm_get_src_data__get__comm(smx_simcall_t simcall) {
   return (smx_synchro_t) simcall->args[0].dp;
 }
index bfc0c86..ffb3331 100644 (file)
@@ -989,27 +989,6 @@ inline static double simcall_BODY_comm_get_remains(smx_synchro_t comm) {
     return (double) self->simcall.result.d;
   }
   
-inline static e_smx_state_t simcall_BODY_comm_get_state(smx_synchro_t comm) {
-    smx_process_t self = SIMIX_process_self();
-
-    /* Go to that function to follow the code flow through the simcall barrier */
-    if (0) SIMIX_comm_get_state(comm);
-    /* end of the guide intended to the poor programmer wanting to go from MSG to Surf */
-
-    self->simcall.call = SIMCALL_COMM_GET_STATE;
-    memset(&self->simcall.result, 0, sizeof(self->simcall.result));
-    memset(self->simcall.args, 0, sizeof(self->simcall.args));
-    self->simcall.args[0].dp = (void*) comm;
-    if (self != simix_global->maestro_process) {
-      XBT_DEBUG("Yield process '%s' on simcall %s (%d)", self->name,
-                SIMIX_simcall_name(self->simcall.call), (int)self->simcall.call);
-      SIMIX_process_yield(self);
-    } else {
-      SIMIX_simcall_handle(&self->simcall, 0);
-    }    
-    return (e_smx_state_t) self->simcall.result.i;
-  }
-  
 inline static void* simcall_BODY_comm_get_src_data(smx_synchro_t comm) {
     smx_process_t self = SIMIX_process_self();
 
index f2af98f..cbac010 100644 (file)
@@ -61,7 +61,6 @@ typedef enum {
   SIMCALL_COMM_TEST,
   SIMCALL_COMM_TESTANY,
   SIMCALL_COMM_GET_REMAINS,
-  SIMCALL_COMM_GET_STATE,
   SIMCALL_COMM_GET_SRC_DATA,
   SIMCALL_COMM_GET_DST_DATA,
   SIMCALL_COMM_GET_SRC_PROC,
index 3498a66..1d86189 100644 (file)
@@ -66,7 +66,6 @@ const char* simcall_names[] = {
   "SIMCALL_COMM_TEST",
   "SIMCALL_COMM_TESTANY",
   "SIMCALL_COMM_GET_REMAINS",
-  "SIMCALL_COMM_GET_STATE",
   "SIMCALL_COMM_GET_SRC_DATA",
   "SIMCALL_COMM_GET_DST_DATA",
   "SIMCALL_COMM_GET_SRC_PROC",
@@ -321,11 +320,6 @@ case SIMCALL_COMM_GET_REMAINS:
       SIMIX_simcall_answer(simcall);
       break;  
 
-case SIMCALL_COMM_GET_STATE:
-      simcall->result.i = SIMIX_comm_get_state((smx_synchro_t) simcall->args[0].dp);
-      SIMIX_simcall_answer(simcall);
-      break;  
-
 case SIMCALL_COMM_GET_SRC_DATA:
       simcall->result.dp = SIMIX_comm_get_src_data((smx_synchro_t) simcall->args[0].dp);
       SIMIX_simcall_answer(simcall);
index 7ac294f..aaabae5 100644 (file)
@@ -94,7 +94,6 @@ Blck H comm_wait (void) (comm, void*, smx_synchro_t) (timeout, double)
 Blck H comm_test (int) (comm, void*, smx_synchro_t)
 Blck H comm_testany (int) (comms, void*, xbt_dynar_t)
 Func - comm_get_remains (double) (comm, void*, smx_synchro_t)
-Func - comm_get_state (int, e_smx_state_t) (comm, void*, smx_synchro_t)
 Func - comm_get_src_data (void*) (comm, void*, smx_synchro_t)
 Func - comm_get_dst_data (void*) (comm, void*, smx_synchro_t)
 Func - comm_get_src_proc (void*, smx_process_t) (comm, void*, smx_synchro_t)