From 2a999ac2440bf73a4b7882a728e01d3485e0982a Mon Sep 17 00:00:00 2001 From: SUTER Frederic Date: Tue, 22 Feb 2022 02:45:54 +0100 Subject: [PATCH] deprecate Engine::shutdown() --- include/simgrid/s4u/Engine.hpp | 2 +- src/s4u/s4u_Engine.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/simgrid/s4u/Engine.hpp b/include/simgrid/s4u/Engine.hpp index 6b1151f13b..fcbf72a846 100644 --- a/include/simgrid/s4u/Engine.hpp +++ b/include/simgrid/s4u/Engine.hpp @@ -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; diff --git a/src/s4u/s4u_Engine.cpp b/src/s4u/s4u_Engine.cpp index e6aa819a2e..5fc537aab7 100644 --- a/src/s4u/s4u_Engine.cpp +++ b/src/s4u/s4u_Engine.cpp @@ -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_; } -- 2.20.1