{
exec->set_host(host);
// We use the user data field to store up to when the host is busy
+ delete host->get_data<double>(); // In case we're erasing a previous value
host->set_data(new double(busy_until));
// we can also set the destination of all the input comms of this exec
for (const auto& pred : exec->get_dependencies()) {
e.run();
}
+ /* Cleanup memory */
+ for (auto const& host : e.get_all_hosts())
+ delete host->get_data<double>();
+
XBT_INFO("Simulation Time: %f", simgrid_get_clock());
return 0;
{
std::vector<kernel::resource::StandardLinkImpl*> linkImpls;
std::vector<Link*> links;
- double latency;
+ double latency = 0;
this->route_to(dest, linkImpls, &latency);
for (auto* l : linkImpls)
links.push_back(l->get_iface());