Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add an easy way to retrieve the name of the current actor
[simgrid.git] / src / s4u / s4u_actor.cpp
index 28833f1..257717f 100644 (file)
@@ -163,6 +163,10 @@ int ppid()
   return SIMIX_process_self()->ppid;
 }
 
+std::string name()
+{
+  return SIMIX_process_self()->name;
+}
 }
 }
 }