X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/08447964cfc19a4b579429ef71c0fccebd60199f..e16ebb1333db2cee332bbfed4098df88777cec22:/include/simgrid/s4u/Comm.hpp diff --git a/include/simgrid/s4u/Comm.hpp b/include/simgrid/s4u/Comm.hpp index f57798004f..1975d6e613 100644 --- a/include/simgrid/s4u/Comm.hpp +++ b/include/simgrid/s4u/Comm.hpp @@ -60,14 +60,14 @@ public: static CommPtr recv_init(MailboxPtr from); /** Creates and start an async recv to the mailbox @p from */ static CommPtr recv_async(MailboxPtr from, void** data); - /** Creates and start a detached send to the mailbox @p dest - * TODO: make it possible to detach an already created comm */ - static void send_detached(MailboxPtr dest, void* data, int simulatedSize); void start() override; void wait() override; void wait(double timeout) override; + /** Start the comm, and ignore its result. It can be completely forgotten after that. */ + void detach(); + /** Sets the maximal communication rate (in byte/sec). Must be done before start */ void setRate(double rate);