Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[s4u] add Actor::getPPid and this_actor::getPPid()
[simgrid.git] / src / s4u / s4u_actor.cpp
index d14a9bf..444fa6c 100644 (file)
@@ -74,6 +74,10 @@ int Actor::getPid(){
   return pimpl_->pid;
 }
 
+int Actor::getPpid() {
+  return pimpl_->ppid;
+}
+
 void Actor::setKillTime(double time) {
   simcall_process_set_kill_time(pimpl_,time);
 }
@@ -158,6 +162,10 @@ int getPid() {
   return SIMIX_process_self()->pid;
 }
 
+int getPpid() {
+  return SIMIX_process_self()->ppid;
+}
+
 }
 }
 }