Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
be sure the Exec is assigned before getting its host
[simgrid.git] / src / s4u / s4u_Comm.cpp
index e2b0348ef19942321924b573f299a6999c4d4209..14ffd37d48f9e9f4cb9cdd7c2c433d34ec05fec6 100644 (file)
@@ -85,7 +85,7 @@ size_t Comm::wait_all_for(const std::vector<CommPtr>& comms, double timeout)
   return comms.size();
 }
 
-CommPtr Comm::set_from(Host* from)
+CommPtr Comm::set_source(Host* from)
 {
   xbt_assert(state_ == State::INITED || state_ == State::STARTING,
              "Cannot change the source of a Comm once it's started (state: %s)", to_c_str(state_));
@@ -96,7 +96,7 @@ CommPtr Comm::set_from(Host* from)
   return this;
 }
 
-CommPtr Comm::set_to(Host* to)
+CommPtr Comm::set_destination(Host* to)
 {
   xbt_assert(state_ == State::INITED || state_ == State::STARTING,
              "Cannot change the destination of a Comm once it's started (state: %s)", to_c_str(state_));