X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5b471fd312578823ddf19badd84c523c024e99bf..0322a73bb9bb8b3285c6d7fce7e19a40e5025823:/include/simgrid/s4u/Mailbox.hpp diff --git a/include/simgrid/s4u/Mailbox.hpp b/include/simgrid/s4u/Mailbox.hpp index f7797dd75b..cc2b5c9c81 100644 --- a/include/simgrid/s4u/Mailbox.hpp +++ b/include/simgrid/s4u/Mailbox.hpp @@ -152,14 +152,17 @@ public: /** Creates (but don't start) an emission to that mailbox */ CommPtr put_init(); /** Creates (but don't start) an emission to that mailbox */ - CommPtr put_init(void* data, int simulatedByteAmount); + CommPtr put_init(void* payload, size_t simulatedSizeInBytes); /** Creates and start an async emission to that mailbox */ - CommPtr put_async(void* data, int simulatedByteAmount); + CommPtr put_async(void* payload, size_t simulatedSizeInBytes); - /** Blocking put */ - void put(void* payload, double simulatedSize); - /** Blocking put with timeout */ - void put(void* payload, double simulatedSize, double timeout); + /** Blocking emission + * + * There is no deep-copy of the payload; the pointer is just copied to the receiving actor. + */ + void put(void* payload, size_t simulatedSizeInBytes); + /** Blocking emission with timeout */ + void put(void* payload, size_t simulatedSizeInBytes, double timeout); /** Creates (but don't start) a reception onto that mailbox */ CommPtr get_init();