Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Oops, we need to store a pointer to the simix process in the smpi process now.
[simgrid.git] / src / smpi / smpi_process.cpp
index 83c2219..fbf586f 100644 (file)
@@ -94,6 +94,7 @@ void Process::set_data(int index, int *argc, char ***argv)
     argv_ = argv;
     // set the process attached to the mailbox
     mailbox_small_->setReceiver(simgrid::s4u::Actor::self());
+    process_ = SIMIX_process_self();
     XBT_DEBUG("<%d> New process in the game: %p", index, SIMIX_process_self());
 }
 
@@ -164,6 +165,10 @@ void *Process::get_user_data()
   return data_;
 }
 
+smx_actor_t Process::process(){
+  return process_;
+}
+
 
 /**
  * \brief Returns a structure that stores the location (filename + linenumber)