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
Oops, we need to store a pointer to the simix process in the smpi process now.
[simgrid.git]
/
src
/
smpi
/
smpi_process.cpp
diff --git
a/src/smpi/smpi_process.cpp
b/src/smpi/smpi_process.cpp
index
83c2219
..
fbf586f
100644
(file)
--- 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());
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());
}
XBT_DEBUG("<%d> New process in the game: %p", index, SIMIX_process_self());
}
@@
-164,6
+165,10
@@
void *Process::get_user_data()
return data_;
}
return data_;
}
+smx_actor_t Process::process(){
+ return process_;
+}
+
/**
* \brief Returns a structure that stores the location (filename + linenumber)
/**
* \brief Returns a structure that stores the location (filename + linenumber)