Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
what could have been the use of that construct?
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 27 Jan 2016 21:06:01 +0000 (22:06 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 27 Jan 2016 21:06:01 +0000 (22:06 +0100)
src/simix/smx_global.cpp
src/simix/smx_host.cpp
src/simix/smx_private.h

index 8ffbde1..6d2a96d 100644 (file)
@@ -214,7 +214,6 @@ void SIMIX_global_init(int *argc, char **argv)
     simix_global->synchro_mallocator = xbt_mallocator_new(65536,
         SIMIX_synchro_mallocator_new_f, SIMIX_synchro_mallocator_free_f,
         SIMIX_synchro_mallocator_reset_f);
     simix_global->synchro_mallocator = xbt_mallocator_new(65536,
         SIMIX_synchro_mallocator_new_f, SIMIX_synchro_mallocator_free_f,
         SIMIX_synchro_mallocator_reset_f);
-    simix_global->autorestart = SIMIX_host_restart_processes;
     simix_global->mutex = xbt_os_mutex_init();
 
     surf_init(argc, argv);      /* Initialize SURF structures */
     simix_global->mutex = xbt_os_mutex_init();
 
     surf_init(argc, argv);      /* Initialize SURF structures */
index a47fa09..2a2fee7 100644 (file)
@@ -220,7 +220,7 @@ void SIMIX_host_add_auto_restart_process(sg_host_t host,
 /**
  * \brief Restart the list of processes that have been registered to the host
  */
 /**
  * \brief Restart the list of processes that have been registered to the host
  */
-void SIMIX_host_restart_processes(sg_host_t host)
+void SIMIX_host_autorestart(sg_host_t host)
 {
   unsigned int cpt;
   smx_process_arg_t arg;
 {
   unsigned int cpt;
   smx_process_arg_t arg;
@@ -263,13 +263,6 @@ void SIMIX_host_restart_processes(sg_host_t host)
   xbt_dynar_reset(process_list);
 }
 
   xbt_dynar_reset(process_list);
 }
 
-void SIMIX_host_autorestart(sg_host_t host)
-{
-  if(simix_global->autorestart)
-    simix_global->autorestart(host);
-  else
-    xbt_die("No function for simix_global->autorestart");
-}
 smx_synchro_t simcall_HANDLER_process_execute(smx_simcall_t simcall,
                const char* name, double flops_amount, double priority, double bound, unsigned long affinity_mask) {
        return SIMIX_process_execute(simcall->issuer, name,flops_amount,priority,bound,affinity_mask);
 smx_synchro_t simcall_HANDLER_process_execute(smx_simcall_t simcall,
                const char* name, double flops_amount, double priority, double bound, unsigned long affinity_mask) {
        return SIMIX_process_execute(simcall->issuer, name,flops_amount,priority,bound,affinity_mask);
index 3dec962..b194599 100644 (file)
@@ -77,7 +77,6 @@ typedef struct s_smx_global {
   /** Callback used when killing a SMX_process */
   void_pfn_smxprocess_t cleanup_process_function;
   xbt_mallocator_t synchro_mallocator;
   /** Callback used when killing a SMX_process */
   void_pfn_smxprocess_t cleanup_process_function;
   xbt_mallocator_t synchro_mallocator;
-  void_pfn_sghost_t autorestart;
 
 #ifdef TIME_BENCH_AMDAHL
   xbt_os_timer_t timer_seq; /* used to bench the sequential and parallel parts of the simulation, if requested to */
 
 #ifdef TIME_BENCH_AMDAHL
   xbt_os_timer_t timer_seq; /* used to bench the sequential and parallel parts of the simulation, if requested to */