Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
reduce the amount of static_cast in smx_network
[simgrid.git] / src / kernel / activity / MailboxImpl.cpp
index b8ff61276ac3a1bf8b6944eef1cb25cbf04c5d2c..06060f429951151b8c59df4da9623d6c16056275 100644 (file)
@@ -50,11 +50,10 @@ void MailboxImpl::setReceiver(s4u::ActorPtr actor)
   this->permanent_receiver = actor.get()->getImpl();
 }
 /** @brief Pushes a communication activity into a mailbox
   this->permanent_receiver = actor.get()->getImpl();
 }
 /** @brief Pushes a communication activity into a mailbox
- *  @param activity What to add
+ *  @param comm What to add
  */
  */
-void MailboxImpl::push(smx_activity_t synchro)
+void MailboxImpl::push(activity::Comm* comm)
 {
 {
-  simgrid::kernel::activity::Comm* comm = static_cast<simgrid::kernel::activity::Comm*>(synchro);
   this->comm_queue.push_back(comm);
   comm->mbox = this;
 }
   this->comm_queue.push_back(comm);
   comm->mbox = this;
 }