From: Frederic Suter Date: Mon, 16 Dec 2019 09:09:18 +0000 (+0100) Subject: remove an instance of namespace surf X-Git-Tag: v3.25~276 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e201f6cd1c98741e6713304e376ec3924b28f905 remove an instance of namespace surf --- diff --git a/src/surf/network_ns3.cpp b/src/surf/network_ns3.cpp index 711f4f2739..74d8e40e09 100644 --- a/src/surf/network_ns3.cpp +++ b/src/surf/network_ns3.cpp @@ -165,7 +165,7 @@ NetworkNS3Model::NetworkNS3Model() : NetworkModel(Model::UpdateAlgo::FULL) pt.extension_set(new NetPointNs3()); XBT_VERB("SimGrid's %s is known as node %d within ns-3", pt.get_cname(), pt.extension()->node_num); }); - surf::on_cluster.connect(&clusterCreation_cb); + routing::on_cluster_creation.connect(&clusterCreation_cb); s4u::Engine::on_platform_created.connect(&postparse_cb); s4u::NetZone::on_route_creation.connect(&routeCreation_cb); diff --git a/src/surf/sg_platf.cpp b/src/surf/sg_platf.cpp index 31f1a9b7c2..98b7b871ed 100644 --- a/src/surf/sg_platf.cpp +++ b/src/surf/sg_platf.cpp @@ -33,11 +33,12 @@ XBT_PRIVATE std::map mount XBT_PRIVATE std::vector known_storages; namespace simgrid { -namespace surf { - -simgrid::xbt::signal on_cluster; -} -} +namespace kernel { +namespace routing { +xbt::signal on_cluster_creation; +} // namespace routing +} // namespace kernel +} // namespace simgrid static int surf_parse_models_setup_already_called = 0; std::map storage_types; @@ -57,7 +58,7 @@ void sg_platf_init() /** Module management function: frees all internal data structures */ void sg_platf_exit() { - simgrid::surf::on_cluster.disconnect_slots(); + simgrid::kernel::routing::on_cluster_creation.disconnect_slots(); simgrid::s4u::Engine::on_platform_created.disconnect_slots(); /* make sure that we will reinit the models while loading the platf once reinited */ @@ -292,7 +293,7 @@ void sg_platf_new_cluster(simgrid::kernel::routing::ClusterCreationArgs* cluster XBT_DEBUG(""); sg_platf_new_Zone_seal(); - simgrid::surf::on_cluster(*cluster); + simgrid::kernel::routing::on_cluster_creation(*cluster); delete cluster->radicals; } diff --git a/src/surf/xml/platf_private.hpp b/src/surf/xml/platf_private.hpp index 6133bea223..fb0c3f092d 100644 --- a/src/surf/xml/platf_private.hpp +++ b/src/surf/xml/platf_private.hpp @@ -187,7 +187,12 @@ public: std::string id; int routing; }; -}}} + +extern XBT_PRIVATE xbt::signal on_cluster_creation; + +} // namespace routing +} // namespace kernel +} // namespace simgrid /********** Routing **********/ void routing_cluster_add_backbone(simgrid::kernel::resource::LinkImpl* bb); @@ -236,11 +241,4 @@ XBT_PUBLIC int surf_parse_get_debug(); XBT_PUBLIC void surf_parse_set_debug(int bdebug); XBT_PUBLIC int surf_parse_lex_destroy(); -namespace simgrid { -namespace surf { - -extern XBT_PRIVATE simgrid::xbt::signal on_cluster; -} -} - #endif /* SG_PLATF_H */