A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[s4u] add Actor::getPPid and this_actor::getPPid()
[simgrid.git]
/
src
/
s4u
/
s4u_actor.cpp
diff --git
a/src/s4u/s4u_actor.cpp
b/src/s4u/s4u_actor.cpp
index
d14a9bf
..
444fa6c
100644
(file)
--- a/
src/s4u/s4u_actor.cpp
+++ b/
src/s4u/s4u_actor.cpp
@@
-74,6
+74,10
@@
int Actor::getPid(){
return pimpl_->pid;
}
return pimpl_->pid;
}
+int Actor::getPpid() {
+ return pimpl_->ppid;
+}
+
void Actor::setKillTime(double time) {
simcall_process_set_kill_time(pimpl_,time);
}
void Actor::setKillTime(double time) {
simcall_process_set_kill_time(pimpl_,time);
}
@@
-158,6
+162,10
@@
int getPid() {
return SIMIX_process_self()->pid;
}
return SIMIX_process_self()->pid;
}
+int getPpid() {
+ return SIMIX_process_self()->ppid;
+}
+
}
}
}
}
}
}