Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Boost contexts: inform ASan about context switches.
[simgrid.git] / src / kernel / EngineImpl.cpp
1 /* Copyright (c) 2016-2017. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #include "src/kernel/EngineImpl.hpp"
7 #include "simgrid/s4u/Host.hpp"
8 #include "src/kernel/routing/NetPoint.hpp"
9 #include "src/kernel/routing/NetZoneImpl.hpp"
10
11 namespace simgrid {
12 namespace kernel {
13
14 EngineImpl::EngineImpl() = default;
15 EngineImpl::~EngineImpl()
16 {
17   sg_host_exit(); // Hosts should be part of the engine, at some point
18   delete netRoot_;
19   for (auto const& kv : netpoints_)
20     delete kv.second;
21 }
22 }
23 }