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
introduce type aid_t for Actor's ID (ie, PID)
[simgrid.git]
/
src
/
s4u
/
s4u_actor.cpp
diff --git
a/src/s4u/s4u_actor.cpp
b/src/s4u/s4u_actor.cpp
index
96ec075
..
bbed1a8
100644
(file)
--- a/
src/s4u/s4u_actor.cpp
+++ b/
src/s4u/s4u_actor.cpp
@@
-77,12
+77,12
@@
simgrid::xbt::string Actor::name()
return this->pimpl_->name;
}
return this->pimpl_->name;
}
-
in
t Actor::pid()
+
aid_
t Actor::pid()
{
return this->pimpl_->pid;
}
{
return this->pimpl_->pid;
}
-
in
t Actor::ppid()
+
aid_
t Actor::ppid()
{
return this->pimpl_->ppid;
}
{
return this->pimpl_->ppid;
}
@@
-111,7
+111,8
@@
double Actor::killTime()
return simcall_process_get_kill_time(pimpl_);
}
return simcall_process_get_kill_time(pimpl_);
}
-void Actor::kill(int pid) {
+void Actor::kill(aid_t pid)
+{
smx_actor_t process = SIMIX_process_from_PID(pid);
if(process != nullptr) {
simcall_process_kill(process);
smx_actor_t process = SIMIX_process_from_PID(pid);
if(process != nullptr) {
simcall_process_kill(process);
@@
-132,7
+133,7
@@
void Actor::kill() {
// ***** Static functions *****
// ***** Static functions *****
-ActorPtr Actor::byPid(
in
t pid)
+ActorPtr Actor::byPid(
aid_
t pid)
{
smx_actor_t process = SIMIX_process_from_PID(pid);
if (process != nullptr)
{
smx_actor_t process = SIMIX_process_from_PID(pid);
if (process != nullptr)
@@
-209,12
+210,12
@@
Comm& irecv(MailboxPtr chan, void** data)
return Comm::recv_async(chan, data);
}
return Comm::recv_async(chan, data);
}
-
in
t pid()
+
aid_
t pid()
{
return SIMIX_process_self()->pid;
}
{
return SIMIX_process_self()->pid;
}
-
in
t ppid()
+
aid_
t ppid()
{
return SIMIX_process_self()->ppid;
}
{
return SIMIX_process_self()->ppid;
}