A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
make it possible to destroy the engine
[simgrid.git]
/
src
/
s4u
/
s4u_engine.cpp
diff --git
a/src/s4u/s4u_engine.cpp
b/src/s4u/s4u_engine.cpp
index
9ab1007
..
64bb882
100644
(file)
--- a/
src/s4u/s4u_engine.cpp
+++ b/
src/s4u/s4u_engine.cpp
@@
-42,6
+42,7
@@
Engine::Engine(int *argc, char **argv) {
Engine::~Engine()
{
delete pimpl;
+ s4u::Engine::instance_ = nullptr;
}
Engine *Engine::instance() {
@@
-52,7
+53,6
@@
Engine *Engine::instance() {
void Engine::shutdown() {
delete s4u::Engine::instance_;
- s4u::Engine::instance_ = nullptr;
}
double Engine::getClock()