X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1108fc19974fc68a9d079ff07b5d4363bf8b9a8b..825fe6086e463bfd069172bd45a6e39a83796d19:/include/simgrid/s4u/actor.hpp diff --git a/include/simgrid/s4u/actor.hpp b/include/simgrid/s4u/actor.hpp index ec7e421fc5..5e4bfba745 100644 --- a/include/simgrid/s4u/actor.hpp +++ b/include/simgrid/s4u/actor.hpp @@ -11,6 +11,7 @@ namespace simgrid { namespace s4u { +class Comm; class Host; class Mailbox; @@ -39,6 +40,7 @@ class Mailbox; * */ class Actor { + friend Comm; public: Actor(const char*name, s4u::Host *host, int argc, char **argv); Actor(const char*name, s4u::Host *host, int argc, char **argv, double killTime); @@ -90,6 +92,9 @@ public: /** Block the actor until it delivers a string message (that will be copied) to the given mailbox */ void sendstr(Mailbox &chan, const char*msg); + /** Creates (but don't start) an async send action */ + Comm &send_init(Mailbox &chan); + protected: smx_process_t getInferior() {return p_smx_process;} private: