X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/51fbc81e5efb63f45ce68952b8d8c1a03730022f..6a8d5cf4199454b5f811043c207d195107743e72:/src/smpi/include/smpi_request.hpp diff --git a/src/smpi/include/smpi_request.hpp b/src/smpi/include/smpi_request.hpp index 7d80fe8191..d6cb8d8bf0 100644 --- a/src/smpi/include/smpi_request.hpp +++ b/src/smpi/include/smpi_request.hpp @@ -18,8 +18,8 @@ class Request : public F2C { /* in the case of non-contiguous memory the user address should be keep * to unserialize the data inside the user memory*/ void *old_buf_; - /* this let us know how to unserialize at the end of - * the communication*/ + /* this is especially for derived datatypes that we need to serialize/unserialize. + * It let us know how to unserialize at the end of the communication */ MPI_Datatype old_type_; size_t size_; int src_; @@ -50,10 +50,11 @@ class Request : public F2C { int tag(); int flags(); int detached(); + MPI_Datatype type(); void print_request(const char *message); void start(); void cancel(); - + void ref(); static void finish_wait(MPI_Request* request, MPI_Status * status); static void unref(MPI_Request* request); static void wait(MPI_Request* req, MPI_Status * status);