Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
deprecate Engine::shutdown()
authorSUTER Frederic <frederic.suter@cc.in2p3.fr>
Tue, 22 Feb 2022 01:45:54 +0000 (02:45 +0100)
committerSUTER Frederic <frederic.suter@cc.in2p3.fr>
Wed, 23 Feb 2022 01:24:13 +0000 (02:24 +0100)
include/simgrid/s4u/Engine.hpp
src/s4u/s4u_Engine.cpp

index 6b1151f..fcbf72a 100644 (file)
@@ -42,7 +42,7 @@ public:
 #endif
 
   /** Finalize the default engine and all its dependencies */
-  void shutdown();
+  XBT_ATTRIB_DEPRECATED_v335("Users are not supposed to shutdown the Engine") void shutdown();
 
   /** Run the simulation until its end */
   void run() const;
index e6aa819..5fc537a 100644 (file)
@@ -77,7 +77,7 @@ Engine* Engine::get_instance(int* argc, char** argv)
   return Engine::instance_;
 }
 
-void Engine::shutdown()
+void Engine::shutdown() // XBT_ATTRIB_DEPRECATED_v335
 {
   delete Engine::instance_;
 }