Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Modernize simcall mutex_trylock.
[simgrid.git] / src / mc / udpor_global.hpp
index bb56103..2c8b7a1 100644 (file)
@@ -29,11 +29,11 @@ public:
   static EventSet plus(EventSet events, UnfoldingEvent* e);
 };
 
-typedef struct s_evset_in {
+struct s_evset_in_t {
   EventSet causuality_events;
   EventSet cause;
   EventSet ancestorSet;
-} s_evset_in_t;
+};
 
 class Configuration {
 public:
@@ -53,8 +53,7 @@ public:
   Configuration()                     = default;
   Configuration(const Configuration&) = default;
   Configuration& operator=(Configuration const&) = default;
-  Configuration(Configuration&&) noexcept        = default;
-  ~Configuration()                               = default;
+  Configuration(Configuration&&)                 = default;
 };
 
 class UnfoldingEvent {
@@ -65,7 +64,6 @@ public:
   UnfoldingEvent(const UnfoldingEvent&) = default;
   UnfoldingEvent& operator=(UnfoldingEvent const&) = default;
   UnfoldingEvent(UnfoldingEvent&&)                 = default;
-  ~UnfoldingEvent()                                = default;
 
   EventSet getHistory() const;
 
@@ -78,7 +76,8 @@ public:
   bool isImmediateConflict1(UnfoldingEvent* evt, UnfoldingEvent* otherEvt) const;
 
   bool conflictWithConfig(UnfoldingEvent* event, Configuration const& config) const;
-  bool operator==(const UnfoldingEvent& other) const;
+  /* TODO: implement */ 
+  bool operator==(const UnfoldingEvent& other) const { return false; };
   void print() const;
 
   inline int get_state_id() const { return state_id; }
@@ -96,4 +95,4 @@ private:
 };
 } // namespace mc
 } // namespace simgrid
-#endif
\ No newline at end of file
+#endif