X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/76d4849864c227687e17bdd93c5b1338e9b4cb50..6721094a6e5bc535c446266801f713c9e99ac968:/src/kernel/resource/SplitDuplexLinkImpl.cpp diff --git a/src/kernel/resource/SplitDuplexLinkImpl.cpp b/src/kernel/resource/SplitDuplexLinkImpl.cpp index 0b02ce4fba..d5b08c9a06 100644 --- a/src/kernel/resource/SplitDuplexLinkImpl.cpp +++ b/src/kernel/resource/SplitDuplexLinkImpl.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2013-2023. 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. */ @@ -11,9 +11,7 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(res_network); * Model * *********/ -namespace simgrid { -namespace kernel { -namespace resource { +namespace simgrid::kernel::resource { SplitDuplexLinkImpl::SplitDuplexLinkImpl(const std::string& name, StandardLinkImpl* link_up, StandardLinkImpl* link_down) @@ -87,12 +85,15 @@ void SplitDuplexLinkImpl::set_latency_profile(profile::Profile* profile) link_down_->set_latency_profile(profile); } +int SplitDuplexLinkImpl::get_concurrency_limit() const +{ + return link_up_->get_concurrency_limit(); +} + void SplitDuplexLinkImpl::set_concurrency_limit(int limit) const { link_up_->set_concurrency_limit(limit); link_down_->set_concurrency_limit(limit); } -} // namespace resource -} // namespace kernel -} // namespace simgrid +} // namespace simgrid::kernel::resource