]> AND Public Git Repository - simgrid.git/blobdiff - src/mc/Session.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
MC: better encapsulation design
[simgrid.git] / src / mc / Session.hpp
index 063b4c14ba7fc64d60924567df92513edfd4a083..b84e6fec732c941dceca90af98d286e0659065d0 100644 (file)
@@ -12,8 +12,7 @@
 
 #include <functional>
 
-namespace simgrid {
-namespace mc {
+namespace simgrid::mc {
 
 /** A model-checking session
  *
@@ -49,16 +48,12 @@ public:
   void restore_initial_state() const;
 
   /** Ask to the application to check for a deadlock. If so, do an error message and throw a DeadlockError. */
-  void check_deadlock();
+  void check_deadlock() const;
 
   void log_state() const;
 
   bool actor_is_enabled(aid_t pid) const;
 };
-
-// Temporary :)
-extern simgrid::mc::Session* session_singleton;
-}
-}
+} // namespace simgrid::mc
 
 #endif