Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill unused type sg_mbox_t
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 13 Aug 2016 21:56:51 +0000 (23:56 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 13 Aug 2016 21:56:51 +0000 (23:56 +0200)
include/simgrid/forward.h
include/simgrid/s4u/mailbox.hpp
src/s4u/s4u_mailbox.cpp

index 83d437a..df24a15 100644 (file)
@@ -38,7 +38,6 @@ namespace simgrid {
 
 typedef simgrid::s4u::As simgrid_As;
 typedef simgrid::s4u::Host simgrid_Host;
-typedef boost::intrusive_ptr<simgrid::s4u::Mailbox> sg_mbox_t;
 typedef simgrid::kernel::activity::ActivityImpl kernel_Activity;
 typedef simgrid::kernel::routing::NetCard routing_NetCard;
 typedef simgrid::surf::Cpu surf_Cpu;
@@ -50,7 +49,6 @@ typedef simgrid::trace_mgr::trace tmgr_Trace;
 
 typedef struct simgrid_As   simgrid_As;
 typedef struct simgrid_Host simgrid_Host;
-typedef struct simgrid_Mailbox *sg_mbox_t;
 typedef struct kernel_Activity kernel_Activity;
 typedef struct surf_Cpu surf_Cpu;
 typedef struct routing_NetCard routing_NetCard;
index e68b46d..88206d6 100644 (file)
@@ -68,8 +68,4 @@ public:
 
 }} // namespace simgrid::s4u
 
-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);
-
 #endif /* SIMGRID_S4U_MAILBOX_HPP */
index 6e5f18d..57d94c7 100644 (file)
@@ -62,15 +62,3 @@ ActorPtr Mailbox::receiver() {
 
 }
 }
-
-/*------- C functions -------*/
-
-sg_mbox_t sg_mbox_by_name(const char*name){
-  return simgrid::s4u::Mailbox::byName(name).get();
-}
-int sg_mbox_is_empty(sg_mbox_t mbox) {
-  return mbox->empty();
-}
-void sg_mbox_setReceiver(sg_mbox_t mbox, smx_process_t process) {
-  mbox->setReceiver(&process->getIface());
-}