Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add an easy way to retrieve the name of the current actor
[simgrid.git] / include / simgrid / s4u / Actor.hpp
index d014cef..0a14c7d 100644 (file)
@@ -289,11 +289,14 @@ namespace this_actor {
   */
   XBT_PUBLIC(void) send(MailboxPtr chan, void*payload, size_t simulatedSize);
 
-  /** @brief Return the PID of the current actor. */
+  /** @brief Returns the PID of the current actor. */
   XBT_PUBLIC(int) pid();
 
-  /** @brief Return the PPID of the current actor. */
+  /** @brief Returns the PPID of the current actor. */
   int ppid();
+
+  /** @brief Returns the name of the current actor. */
+  std::string name();
 };
 
 /** @} */