X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f35db13138682b1be530a509d1eeadeafff84ca7..993a209621600d56fe86f17b6615c23267e7cb06:/src/smpi/smpi_process.cpp diff --git a/src/smpi/smpi_process.cpp b/src/smpi/smpi_process.cpp index 83c2219162..fbf586f91b 100644 --- a/src/smpi/smpi_process.cpp +++ b/src/smpi/smpi_process.cpp @@ -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)