Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
finish the cleanup of the netcard list container
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 22 Dec 2016 22:37:22 +0000 (23:37 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 22 Dec 2016 22:37:28 +0000 (23:37 +0100)
commit12db8a46fc2350fc54dc04b12fc5580239ef23c4
tree6c2c0c4de3e6fbf1b254d875049840a39ef7c1af
parent2fe78f8bc84b3da9ec09542499edeb2189227f61
finish the cleanup of the netcard list container

- move it from global to the engine
- use a std::unordered_map instead of a xbt_dict. Its order being
  harder to predict, this forces to sort the list in the routing
  integration tests.

I'm not completely happy about the register/unregister functions being
public, but I cannot find anything better, and it's later already...
14 files changed:
include/simgrid/s4u/engine.hpp
include/surf/surf_routing.h
src/kernel/EngineImpl.cpp
src/kernel/EngineImpl.hpp
src/kernel/routing/NetCard.cpp
src/kernel/routing/NetCard.hpp
src/kernel/routing/NetZoneImpl.cpp
src/msg/msg_private.h
src/s4u/s4u_engine.cpp
src/s4u/s4u_host.cpp
teshsuite/simdag/flatifier/flatifier.cpp
teshsuite/simdag/flatifier/flatifier.tesh
teshsuite/simdag/is-router/is-router.cpp
teshsuite/simdag/is-router/is-router.tesh