Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Pointer-to-const for Sonar.
[simgrid.git] / src / kernel / EngineImpl.hpp
index ebf440f..a89924b 100644 (file)
@@ -35,6 +35,8 @@ class EngineImpl {
   std::map<std::string, s4u::Host*, std::less<>> hosts_;
   std::map<std::string, resource::LinkImpl*, std::less<>> links_;
   std::unordered_map<std::string, routing::NetPoint*> netpoints_;
+  std::unordered_map<std::string, activity::MailboxImpl*> mailboxes_;
+
   std::unordered_map<std::string, actor::ActorCodeFactory> registered_functions; // Maps function names to actor code
   actor::ActorCodeFactory default_function; // Function to use as a fallback when the provided name matches nothing
   std::vector<resource::Model*> models_;
@@ -105,7 +107,7 @@ public:
   void add_actor_to_run_list_no_check(actor::ActorImpl* actor);
   void add_actor_to_destroy_list(actor::ActorImpl& actor) { actors_to_destroy_.push_back(actor); }
 
-  bool has_actors_to_run() { return not actors_to_run_.empty(); }
+  bool has_actors_to_run() const { return not actors_to_run_.empty(); }
   const actor::ActorImpl* get_first_actor_to_run() const { return actors_to_run_.front(); }
   const actor::ActorImpl* get_actor_to_run_at(unsigned long int i) const { return actors_to_run_[i]; }
   unsigned long int get_actor_to_run_count() const { return actors_to_run_.size(); }