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
Move collective algorithms to separate folders
[simgrid.git]
/
src
/
s4u
/
s4u_actor.cpp
diff --git
a/src/s4u/s4u_actor.cpp
b/src/s4u/s4u_actor.cpp
index
28833f1
..
f58240a
100644
(file)
--- a/
src/s4u/s4u_actor.cpp
+++ b/
src/s4u/s4u_actor.cpp
@@
-57,6
+57,11
@@
s4u::Host* Actor::host()
return this->pimpl_->host;
}
return this->pimpl_->host;
}
+const char* Actor::cname()
+{
+ return this->pimpl_->name.c_str();
+}
+
simgrid::xbt::string Actor::name()
{
return this->pimpl_->name;
simgrid::xbt::string Actor::name()
{
return this->pimpl_->name;
@@
-82,7
+87,7
@@
double Actor::killTime()
}
void Actor::kill(int pid) {
}
void Actor::kill(int pid) {
-
msg_process
_t process = SIMIX_process_from_PID(pid);
+
smx_actor
_t process = SIMIX_process_from_PID(pid);
if(process != nullptr) {
simcall_process_kill(process);
} else {
if(process != nullptr) {
simcall_process_kill(process);
} else {
@@
-163,6
+168,10
@@
int ppid()
return SIMIX_process_self()->ppid;
}
return SIMIX_process_self()->ppid;
}
+std::string name()
+{
+ return SIMIX_process_self()->name;
+}
}
}
}
}
}
}