Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill an unused function and make an internal field protected
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 26 Jul 2016 13:13:48 +0000 (15:13 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 26 Jul 2016 13:13:48 +0000 (15:13 +0200)
include/simgrid/s4u/actor.hpp
include/simgrid/s4u/mailbox.hpp
src/s4u/s4u_mailbox.cpp

index 28dbdc4..89a7727 100644 (file)
@@ -248,6 +248,7 @@ public:
   /** Ask kindly to all actors to die. Only the issuer will survive. */
   static void killAll();
 
+protected:
   /** Returns the internal implementation of this actor */
   smx_process_t getImpl();
 };
index 88f9b98..8ac3dbf 100644 (file)
@@ -71,6 +71,5 @@ using MailboxPtr = Mailbox::Ptr;
 XBT_PUBLIC(sg_mbox_t) sg_mbox_by_name(const char*name);
 XBT_PUBLIC(int) sg_mbox_is_empty(sg_mbox_t mbox);
 XBT_PUBLIC(void)sg_mbox_setReceiver(sg_mbox_t mbox, smx_process_t process);
-XBT_PUBLIC(smx_process_t) sg_mbox_receiver(sg_mbox_t mbox);
 
 #endif /* SIMGRID_S4U_MAILBOX_HPP */
index fe40a3f..e49465c 100644 (file)
@@ -62,6 +62,3 @@ int sg_mbox_is_empty(sg_mbox_t mbox) {
 void sg_mbox_setReceiver(sg_mbox_t mbox, smx_process_t process) {
   mbox->setReceiver(&process->actor());
 }
-smx_process_t sg_mbox_receiver(sg_mbox_t mbox) {
-  return mbox->receiver()->getImpl();
-}