Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Field is effectively a boolean.
[simgrid.git] / src / include / surf / maxmin.hpp
index 3ce7405..e1ec09e 100644 (file)
@@ -205,8 +205,8 @@ public:
   s_lmm_constraint_t() = default;
   s_lmm_constraint_t(void* id_value, double bound_value);
 
-  /** @brief Share a constraint. FIXME: name is misleading */
-  void shared() { sharing_policy = 0; }
+  /** @brief Unshare a constraint. */
+  void unshare() { sharing_policy = 0; }
 
   /**
    * @brief Check if a constraint is shared (shared by default)
@@ -550,7 +550,7 @@ private:
   void check_concurrency();
 
 public:
-  int modified;
+  bool modified;
   s_xbt_swag_t variable_set;             /* a list of lmm_variable_t */
   s_xbt_swag_t active_constraint_set;    /* a list of lmm_constraint_t */
   s_xbt_swag_t saturated_variable_set;   /* a list of lmm_variable_t */