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
finish the cleanup of the netcard list container
[simgrid.git]
/
src
/
s4u
/
s4u_host.cpp
diff --git
a/src/s4u/s4u_host.cpp
b/src/s4u/s4u_host.cpp
index
1499c26
..
72c3dfc
100644
(file)
--- a/
src/s4u/s4u_host.cpp
+++ b/
src/s4u/s4u_host.cpp
@@
-10,6
+10,7
@@
#include <unordered_map>
#include <unordered_map>
+#include "simgrid/s4u/engine.hpp"
#include "simgrid/s4u/host.hpp"
#include "simgrid/s4u/storage.hpp"
#include "simgrid/simix.hpp"
#include "simgrid/s4u/host.hpp"
#include "simgrid/s4u/storage.hpp"
#include "simgrid/simix.hpp"
@@
-53,7
+54,7
@@
Host::~Host()
delete pimpl_;
if (pimpl_netcard != nullptr) // not removed yet by a children class
delete pimpl_;
if (pimpl_netcard != nullptr) // not removed yet by a children class
-
xbt_dict_remove(netcards_dict, name_.c_str()
);
+
simgrid::s4u::Engine::instance()->netcardUnregister(pimpl_netcard
);
delete pimpl_cpu;
delete mounts;
}
delete pimpl_cpu;
delete mounts;
}