Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
try to match Activity design to Resource design
[simgrid.git] / src / kernel / activity / ExecImpl.hpp
index 3782b7a..f32376b 100644 (file)
@@ -25,6 +25,7 @@ class XBT_PUBLIC ExecImpl : public ActivityImpl_T<ExecImpl> {
   std::vector<double> flops_amounts_;
   std::vector<double> bytes_amounts_;
   s4u::Exec* piface_;
+
 public:
   ExecImpl();
   s4u::Exec* get_iface() { return piface_; }
@@ -36,6 +37,7 @@ public:
   ExecImpl& set_flops_amount(double flop_amount);
   ExecImpl& set_host(s4u::Host* host);
   s4u::Host* get_host() const { return hosts_.front(); }
+  std::vector<s4u::Host*> get_hosts() const { return hosts_; }
 
   ExecImpl& set_flops_amounts(const std::vector<double>& flops_amounts);
   ExecImpl& set_bytes_amounts(const std::vector<double>& bytes_amounts);
@@ -50,6 +52,8 @@ public:
   void post() override;
   void finish() override;
 
+  static void wait_any_for(actor::ActorImpl* issuer, const std::vector<ExecImpl*>* execs, double timeout);
+
   static xbt::signal<void(ExecImpl const&, s4u::Host*)> on_migration;
 };
 } // namespace activity