Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[s4u] add this_actor::getPid()
[simgrid.git] / include / simgrid / s4u / actor.hpp
index 052ad86..9b38309 100644 (file)
@@ -277,6 +277,11 @@ namespace this_actor {
    * See \ref Comm for the full communication API (including non blocking communications).
   */
   XBT_PUBLIC(void) send(Mailbox &chan, void*payload, size_t simulatedSize);
+  
+  /**
+   * Return the PID of the current actor.
+   */
+  XBT_PUBLIC(int) getPid();
 
 };