Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Moving functions to the right location and making them work.
[simgrid.git] / src / gras / Virtu / rl_process.c
index ae191c3..f602d7a 100644 (file)
@@ -15,6 +15,7 @@ XBT_LOG_DEFAULT_CATEGORY(process);
 
 /* globals */
 static gras_procdata_t *_gras_procdata = NULL;
+char const *_gras_procname = NULL;
 
 xbt_error_t gras_process_init() {
   _gras_procdata=xbt_new(gras_procdata_t,1);
@@ -27,6 +28,11 @@ xbt_error_t gras_process_exit() {
   return no_error;
 }
 
+const char *xbt_procname(void) {
+  if(_gras_procname) return _gras_procname;
+  else return "(null)";
+}
+
 /* **************************************************************************
  * Process data
  * **************************************************************************/