X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c8a8ad6adbbd82cb0a9c145b0ac9f563ad62775d..40616078da72e823931c1fb884949054699ec39d:/src/s4u/s4u_actor.cpp diff --git a/src/s4u/s4u_actor.cpp b/src/s4u/s4u_actor.cpp index 28833f1faf..f58240a8ce 100644 --- a/src/s4u/s4u_actor.cpp +++ b/src/s4u/s4u_actor.cpp @@ -57,6 +57,11 @@ s4u::Host* Actor::host() return this->pimpl_->host; } +const char* Actor::cname() +{ + return this->pimpl_->name.c_str(); +} + simgrid::xbt::string Actor::name() { return this->pimpl_->name; @@ -82,7 +87,7 @@ double Actor::killTime() } 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 { @@ -163,6 +168,10 @@ int ppid() return SIMIX_process_self()->ppid; } +std::string name() +{ + return SIMIX_process_self()->name; +} } } }