X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/82230d737404aa70c3c2b5824d97109f1f129d58..51fbc81e5efb63f45ce68952b8d8c1a03730022f:/src/smpi/include/smpi_request.hpp diff --git a/src/smpi/include/smpi_request.hpp b/src/smpi/include/smpi_request.hpp index f6c69ac21f..7d80fe8191 100644 --- a/src/smpi/include/smpi_request.hpp +++ b/src/smpi/include/smpi_request.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2010-2018. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -38,6 +38,7 @@ class Request : public F2C { MPI_Request detached_sender_; int refcount_; MPI_Op op_; + int cancelled_; public: Request()=default; Request(void *buf, int count, MPI_Datatype datatype, int src, int dst, int tag, MPI_Comm comm, unsigned flags); @@ -51,6 +52,7 @@ class Request : public F2C { int detached(); void print_request(const char *message); void start(); + void cancel(); static void finish_wait(MPI_Request* request, MPI_Status * status); static void unref(MPI_Request* request);