Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rename S4U::Channel to S4U::Mailbox. It was not a good idea
[simgrid.git] / include / simgrid / s4u / process.hpp
index bfe5c49..b8a9fb1 100644 (file)
@@ -12,6 +12,7 @@ namespace simgrid {
 namespace s4u {
 
 class Host;
+class Mailbox;
 
 /** @brief Simulation Agent
  *
@@ -84,10 +85,10 @@ public:
        //void* recv(const char *mailbox);
 
        /** Block the process until it gets a string message (to be freed after use) from the given mailbox */
-       char *recvstr(const char* mailbox);
+       char *recvstr(Mailbox &chan);
 
        /** Block the process until it delivers a string message (that will be copied) to the given mailbox */
-       void sendstr(const char*mailbox, const char*msg);
+       void sendstr(Mailbox &chan, const char*msg);
 
 protected:
        smx_process_t getInferior() {return p_smx_process;}