Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
s4u: allows full single-line initialization
[simgrid.git] / src / s4u / s4u_Link.cpp
index 373708b..41a19ab 100644 (file)
@@ -122,9 +122,10 @@ void Link::turn_off()
 {
   kernel::actor::simcall([this]() { this->pimpl_->turn_off(); });
 }
-void Link::seal()
+Link* Link::seal()
 {
   kernel::actor::simcall([this]() { this->pimpl_->seal(); });
+  return this;
 }
 
 bool Link::is_on() const