surf_cpu_model_pm = new CpuL07Model(this,maxminSystem_);
}
-HostL07Model::~HostL07Model() = default;
+HostL07Model::~HostL07Model()
+{
+ lmm_system_free(maxminSystem_);
+ maxminSystem_ = nullptr;
+}
CpuL07Model::CpuL07Model(HostL07Model *hmodel,lmm_system_t sys)
: CpuModel()
{
maxminSystem_ = sys;
}
-CpuL07Model::~CpuL07Model() {
- lmm_system_free(maxminSystem_);
- maxminSystem_ = nullptr;
-}
+CpuL07Model::~CpuL07Model() = default;
+
NetworkL07Model::NetworkL07Model(HostL07Model *hmodel, lmm_system_t sys)
: NetworkModel()
, hostModel_(hmodel)
maxminSystem_ = sys;
loopback_ = createLink("__loopback__", 498000000, 0.000015, SURF_LINK_FATPIPE);
}
-NetworkL07Model::~NetworkL07Model()
-{
- maxminSystem_ = nullptr; // Avoid multi-free
-}
+NetworkL07Model::~NetworkL07Model() = default;
double HostL07Model::nextOccuringEvent(double now)
action->updateBound();
}
}
+LinkL07::~LinkL07() = default;
/**********
* Action *