Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
s4u: allows full single-line initialization
[simgrid.git] / src / s4u / s4u_Netzone.cpp
index dc6f3d4..4f97b64 100644 (file)
@@ -143,9 +143,10 @@ void NetZone::extract_xbt_graph(const s_xbt_graph_t* graph, std::map<std::string
   pimpl_->get_graph(graph, nodes, edges);
 }
 
-void NetZone::seal()
+NetZone* NetZone::seal()
 {
   kernel::actor::simcall([this] { pimpl_->seal(); });
+  return this;
 }
 
 s4u::Host* NetZone::create_host(const std::string& name, const std::vector<double>& speed_per_pstate)