Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Allow to set a concurrency limit on disks and hosts
[simgrid.git] / include / simgrid / s4u / Host.hpp
index b13b561..df0511a 100644 (file)
@@ -133,6 +133,14 @@ public:
   Host* set_state_profile(kernel::profile::Profile* p);
   Host* set_speed_profile(kernel::profile::Profile* p);
 
+  /**
+   * @brief Set the max amount of executions that can take place on this host at the same time
+   *
+   * Use -1 to set no limit.
+   */
+  Host* set_concurrency_limit(int limit);
+  int get_concurrency_limit() const;
+
   /** @brief Convert the CPU's speed from string to double */
   static std::vector<double> convert_pstate_speed_vector(const std::vector<std::string>& speed_per_state);
   /**