Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rename gras_chrono_{init,exit} to gras_emul_{init,exit}
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 10 May 2005 14:55:45 +0000 (14:55 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 10 May 2005 14:55:45 +0000 (14:55 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1267 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/gras/Virtu/rl_emul.c
src/gras/Virtu/sg_emul.c
src/gras_modinter.h

index 8ec8fec..0f812e6 100644 (file)
@@ -15,6 +15,9 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(emul,gras,"Emulation support");
 
 /*** Timing macros: nothing to do in RL. Actually do the job and shutup ***/
 
+void gras_emul_init(void)  {}
+void gras_emul_exit(void)  {}
+
 int gras_bench_always_begin(const char *location,int line) {
   return 0;
 }
@@ -31,9 +34,6 @@ int gras_bench_once_end(void) {
   return 0;
 }
 
-void gras_chrono_init(void)  {}
-void gras_chrono_exit(void)  {}
-
 /*** Conditional execution support ***/
 
 int gras_if_RL(void) {
index 6d70e51..e2255f4 100644 (file)
@@ -26,6 +26,21 @@ static double duration = 0.0;
 static char* locbuf = NULL;
 static int locbufsize;
 
+void gras_emul_init(void)
+{
+  if(!benchmark_set) {
+    benchmark_set = xbt_dict_new();
+    timer = xbt_os_timer_new();
+  }
+}
+
+void gras_emul_exit(void) {
+  if (locbuf) free(locbuf);
+  xbt_dict_free(&benchmark_set);
+  xbt_os_timer_free(timer);
+}
+
+
 static void store_in_dict(xbt_dict_t dict, const char *key, double value)
 {
   double *ir = NULL;
@@ -115,19 +130,6 @@ int gras_bench_once_end(void)
   return 0;
 }
 
-void gras_chrono_init(void)
-{
-  if(!benchmark_set) {
-    benchmark_set = xbt_dict_new();
-    timer = xbt_os_timer_new();
-  }
-}
-
-void gras_chrono_exit(void) {
-  if (locbuf) free(locbuf);
-  xbt_dict_free(&benchmark_set);
-  xbt_os_timer_free(timer);
-}
 
 /*** Conditional execution support ***/
 
index 2a71756..e462634 100644 (file)
@@ -11,8 +11,8 @@
 #define GRAS_MODINTER_H
 
 /* modules initialization functions */
-void gras_chrono_init(void);
-void gras_chrono_exit(void); 
+void gras_emul_init(void);
+void gras_emul_exit(void); 
 
 void gras_msg_register(void);
 void gras_msg_init(void);