-/* Copyright (c) 2017-2020. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2017-2021. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
static simgrid::xbt::Extension<simgrid::s4u::Link, LinkLoad> EXTENSION_ID;
explicit LinkLoad(simgrid::s4u::Link* ptr);
- ~LinkLoad() = default;
void track();
void untrack();
static void on_communicate(const simgrid::kernel::resource::NetworkAction& action)
{
XBT_DEBUG("on_communicate is called");
- for (simgrid::kernel::resource::LinkImpl* link : action.get_links()) {
+ for (auto* link : action.get_links()) {
if (link == nullptr || link->get_sharing_policy() == simgrid::s4u::Link::SharingPolicy::WIFI)
continue;