Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
EngineImpl::shutdown doesn't have to be static
authorSUTER Frederic <frederic.suter@cc.in2p3.fr>
Tue, 21 Sep 2021 09:46:35 +0000 (11:46 +0200)
committerSUTER Frederic <frederic.suter@cc.in2p3.fr>
Tue, 21 Sep 2021 09:46:35 +0000 (11:46 +0200)
src/kernel/EngineImpl.cpp
src/kernel/EngineImpl.hpp

index 0e83773..3b08ef3 100644 (file)
@@ -190,7 +190,7 @@ void EngineImpl::initialize(int* argc, char** argv)
   s4u::Engine::on_platform_created.connect(surf_presolve);
 
   if (config::get_value<bool>("debug/clean-atexit"))
-    atexit(shutdown);
+    atexit(s4u::Engine::shutdown);
 }
 
 void EngineImpl::shutdown()
index febb9db..63d2c44 100644 (file)
@@ -85,7 +85,7 @@ public:
   EngineImpl(const EngineImpl&) = delete;
   EngineImpl& operator=(const EngineImpl&) = delete;
   virtual ~EngineImpl();
-  static void shutdown();
+  void shutdown();
 #endif
 
   void initialize(int* argc, char** argv);