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
/
kernel
/
routing
/
NetCard.cpp
diff --git
a/src/kernel/routing/NetCard.cpp
b/src/kernel/routing/NetCard.cpp
index
e45e174
..
d875e89
100644
(file)
--- a/
src/kernel/routing/NetCard.cpp
+++ b/
src/kernel/routing/NetCard.cpp
@@
-22,7
+22,7
@@
NetCard::NetCard(std::string name, NetCard::Type componentType, NetZoneImpl* net
{
if (netzone_p != nullptr)
id_ = netzone_p->addComponent(this);
-
xbt_dict_set(netcards_dict, name.c_str(), static_cast<void*>(this), nullptr
);
+
simgrid::s4u::Engine::instance()->netcardRegister(this
);
simgrid::kernel::routing::NetCard::onCreation(this);
}
}