Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move hosts_ to ActivityImpl_ to allow tracking of detached comms by maestro
[simgrid.git] / src / kernel / activity / ActivityImpl.hpp
index 68defdb..a5feea5 100644 (file)
@@ -38,6 +38,10 @@ public:
   resource::Action* surf_action_ = nullptr;
 
 protected:
+
+  std::vector<s4u::Host*> hosts_;
+
+
   void inline set_name(std::string_view name)
   {
     // This is to keep name_ private while allowing ActivityImpl_T<??> to set it and then return a Ptr to qualified
@@ -81,6 +85,8 @@ public:
   virtual void finish() = 0; // Unlock all simcalls blocked on that activity, either because it was marked as done by
                              // the model or because it terminated without waiting for the model
 
+  virtual const std::vector<s4u::Host*>& get_hosts() const { return hosts_;} ;
+
   void register_simcall(actor::Simcall* simcall);
   void unregister_simcall(actor::Simcall* simcall);
   void handle_activity_waitany(actor::Simcall* simcall);