Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Indentation in smpi_base.cpp
[simgrid.git] / src / s4u / s4u_actor.cpp
index 6c2f29c..37302a7 100644 (file)
@@ -29,6 +29,10 @@ s4u::Actor::Actor(const char* name, s4u::Host *host, double killTime, std::funct
 
 s4u::Actor::~Actor() {}
 
+void s4u::Actor::join() {
+  simcall_process_join(pimpl_, -1);
+}
+
 void s4u::Actor::setAutoRestart(bool autorestart) {
   simcall_process_auto_restart_set(pimpl_,autorestart);
 }
@@ -53,13 +57,13 @@ double s4u::Actor::getKillTime() {
   return simcall_process_get_kill_time(pimpl_);
 }
 
-void s4u::Actor::kill(int PID) {
-  msg_process_t process = SIMIX_process_from_PID(PID);
+void s4u::Actor::kill(int pid) {
+  msg_process_t process = SIMIX_process_from_PID(pid);
   if(process != NULL) {
     simcall_process_kill(process);
   } else {
     std::ostringstream oss;
-    oss << "kill: ("<< PID <<") - No such process" << std::endl;
+    oss << "kill: ("<< pid <<") - No such process" << std::endl;
     throw std::runtime_error(oss.str());
   }
 }