Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
change way WIFI are create + make sharing_policy optional
[simgrid.git] / src / kernel / lmm / maxmin.hpp
index b820202..d2dae46 100644 (file)
@@ -187,6 +187,8 @@ public:
   /** @brief Unshare a constraint. */
   void unshare() { sharing_policy_ = s4u::Link::SharingPolicy::FATPIPE; }
 
+  /** @brief Set how a constraint is shared  */
+  void set_sharing_policy(s4u::Link::SharingPolicy policy) { sharing_policy_ = policy; }
   /** @brief Check how a constraint is shared  */
   s4u::Link::SharingPolicy get_sharing_policy() const { return sharing_policy_; }