Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Have the s4u::Actor::execute() actually wait for the completion of the execution
[simgrid.git] / include / simgrid / s4u / actor.hpp
index 5e4bfba..6b9c524 100644 (file)
@@ -81,16 +81,13 @@ public:
        void sleep(double duration);
 
        /** Block the actor, computing the given amount of flops */
-       void execute(double flop);
+       e_smx_state_t execute(double flop);
 
        /** Block the actor until it gets a message from the given mailbox */
-       //void* recv(const char *mailbox);
+       void *recv(Mailbox &chan);
 
-       /** Block the actor until it gets a string message (to be freed after use) from the given mailbox */
-       char *recvstr(Mailbox &chan);
-
-       /** Block the actor until it delivers a string message (that will be copied) to the given mailbox */
-       void sendstr(Mailbox &chan, const char*msg);
+       /** Block the actor until it delivers a message of the given simulated size to the given mailbox */
+       void send(Mailbox &chan, void*payload, size_t simulatedSize);
 
        /** Creates (but don't start) an async send action */
        Comm &send_init(Mailbox &chan);