Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Const...
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 13 Apr 2021 06:52:28 +0000 (08:52 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 13 Apr 2021 06:58:34 +0000 (08:58 +0200)
include/simgrid/kernel/routing/NetZoneImpl.hpp
src/kernel/activity/CommImpl.cpp
src/kernel/activity/CommImpl.hpp

index 0dbbc4f..f829d7f 100644 (file)
@@ -116,7 +116,7 @@ public:
   NetZoneImpl* get_parent() const { return parent_; }
   /** @brief Returns the list of direct children (no grand-children). This returns the internal data, no copy.
    * Don't mess with it.*/
-  const std::vector<NetZoneImpl*>& get_children() { return children_; }
+  const std::vector<NetZoneImpl*>& get_children() const { return children_; }
   /** @brief Get current netzone hierarchy */
   RoutingMode get_hierarchy() const { return hierarchy_; }
 
index faf9eec..e9b38ce 100644 (file)
@@ -422,7 +422,7 @@ void CommImpl::wait_for(actor::ActorImpl* issuer, double timeout)
   }
 }
 
-int CommImpl::test_any(actor::ActorImpl* issuer, const std::vector<CommImpl*>& comms)
+int CommImpl::test_any(const actor::ActorImpl* issuer, const std::vector<CommImpl*>& comms)
 {
   if (MC_is_active() || MC_record_replay_is_active()) {
     int idx = issuer->simcall_.mc_value_;
index 5f69a59..6f8770a 100644 (file)
@@ -52,7 +52,7 @@ public:
 
   bool test() override;
   void wait_for(actor::ActorImpl* issuer, double timeout) override;
-  static int test_any(actor::ActorImpl* issuer, const std::vector<CommImpl*>& comms);
+  static int test_any(const actor::ActorImpl* issuer, const std::vector<CommImpl*>& comms);
   static void wait_any_for(actor::ActorImpl* issuer, const std::vector<CommImpl*>& comms, double timeout);
 
   CommImpl* start();