Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
change way WIFI are create + make sharing_policy optional
[simgrid.git] / src / s4u / s4u_Link.cpp
index 011917a..231b05d 100644 (file)
@@ -92,6 +92,11 @@ Link* Link::set_bandwidth(double value)
   return this;
 }
 
+Link* Link::set_sharing_policy(Link::SharingPolicy policy)
+{
+  kernel::actor::simcall([this, policy] { pimpl_->set_sharing_policy(policy); });
+  return this;
+}
 Link::SharingPolicy Link::get_sharing_policy() const
 {
   return this->pimpl_->get_sharing_policy();