]> AND Public Git Repository - simgrid.git/blobdiff - src/kernel/activity/MailboxImpl.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
further simpify the MC initialization on app side
[simgrid.git] / src / kernel / activity / MailboxImpl.hpp
index 21a8c455a7f40933511c463340144d333b1d27a7..ce7355238dbfc034ea9e8b712309b12938348eb6 100644 (file)
@@ -38,6 +38,8 @@ class MailboxImpl {
   static unsigned next_id_; // Next ID to be given
   const unsigned id_ = next_id_++;
   explicit MailboxImpl(const std::string& name) : piface_(this), name_(name) {}
+  MailboxImpl(const MailboxImpl&) = delete;
+  MailboxImpl& operator=(const MailboxImpl&) = delete;
 
 public:
   /** @brief Public interface */
@@ -56,7 +58,7 @@ public:
   void remove(const CommImplPtr& comm);
   void clear();
   CommImplPtr iprobe(int type, bool (*match_fun)(void*, void*, CommImpl*), void* data);
-  CommImplPtr find_matching_comm(CommImpl::Type type, bool (*match_fun)(void*, void*, CommImpl*), void* this_user_data,
+  CommImplPtr find_matching_comm(CommImplType type, bool (*match_fun)(void*, void*, CommImpl*), void* this_user_data,
                                  const CommImplPtr& my_synchro, bool done, bool remove_matching);
   bool is_permanent() const { return permanent_receiver_ != nullptr; }
   actor::ActorImplPtr get_permanent_receiver() const { return permanent_receiver_; }