From: Samuel Thibault Date: Wed, 3 May 2017 13:17:49 +0000 (+0200) Subject: Revert "kill useless code" X-Git-Tag: v3.16~274^2~72^2^2~1 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/64c229141eeb3928368f564c1ed67facaa3f1e4c Revert "kill useless code" This reverts commit 51b60f41f037171a411e084cc07f276a800800f5. --- diff --git a/src/smpi/smpi_process.cpp b/src/smpi/smpi_process.cpp index 92cd1d3edd..194cca9b84 100644 --- a/src/smpi/smpi_process.cpp +++ b/src/smpi/smpi_process.cpp @@ -139,6 +139,16 @@ bool Process::replaying(){ return false; } +void Process::set_user_data(void *data) +{ + data_ = data; +} + +void *Process::get_user_data() +{ + return data_; +} + smx_actor_t Process::process(){ return process_; } diff --git a/src/smpi/smpi_process.hpp b/src/smpi/smpi_process.hpp index 9cc8a2af96..4bf8d0e00b 100644 --- a/src/smpi/smpi_process.hpp +++ b/src/smpi/smpi_process.hpp @@ -28,6 +28,7 @@ class Process { MPI_Comm comm_self_ = MPI_COMM_NULL; MPI_Comm comm_intra_ = MPI_COMM_NULL; MPI_Comm* comm_world_ = nullptr; + void* data_ = nullptr; /* user data */ int index_ = MPI_UNDEFINED; char state_; int sampling_ = 0; /* inside an SMPI_SAMPLE_ block? */ @@ -51,6 +52,8 @@ class Process { void mark_as_initialized(); void set_replaying(bool value); bool replaying(); + void set_user_data(void *data); + void *get_user_data(); smpi_trace_call_location_t* call_location(); int index(); MPI_Comm comm_world();