Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
let's keep the API simple, with reduced redudency (kill actor::send_init)
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 17 Aug 2015 16:42:40 +0000 (18:42 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 17 Aug 2015 16:42:40 +0000 (18:42 +0200)
include/simgrid/s4u/actor.hpp
src/s4u/s4u_actor.cpp

index bcfff13..b342262 100644 (file)
@@ -84,15 +84,18 @@ public:
        /** Block the actor, computing the given amount of flops */
        e_smx_state_t execute(double flop);
 
-       /** Block the actor until it gets a message from the given mailbox */
+       /** Block the actor until it gets a message from the given mailbox.
+        *
+        * See \ref Comm for the full communication API (including non blocking communications).
+        */
        void *recv(Mailbox &chan);
 
-       /** Block the actor until it delivers a message of the given simulated size to the given mailbox */
+       /** Block the actor until it delivers a message of the given simulated size to the given mailbox
+        *
+        * See \ref Comm for the full communication API (including non blocking communications).
+       */
        void send(Mailbox &chan, void*payload, size_t simulatedSize);
 
-       /** Creates (but don't start) an async send action */
-       Comm &send_init(Mailbox &chan);
-
 protected:
        smx_process_t getInferior() {return p_smx_process;}
 private:
index 7d3be59..252c441 100644 (file)
@@ -105,7 +105,3 @@ void s4u::Actor::send(Mailbox &chan, void *payload, size_t simulatedSize) {
        // c.start() is optional.
        c.wait();
 }
-
-s4u::Comm &s4u::Actor::send_init(Mailbox &chan) {
-       return s4u::Comm::send_init(this, chan);
-}