Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove smx_global.cpp
[simgrid.git] / src / s4u / s4u_Disk.cpp
index 29adfd31d4206998c37265ee211121f8ee73e6cb..7ad08c3a0ba8d809026e11c4055c4d990ca297de 100644 (file)
@@ -47,6 +47,12 @@ double Disk::get_read_bandwidth() const
   return pimpl_->get_read_bandwidth();
 }
 
+Disk* Disk::set_readwrite_bandwidth(double bw)
+{
+  kernel::actor::simcall([this, bw] { pimpl_->set_readwrite_bandwidth(bw); });
+  return this;
+}
+
 double Disk::get_write_bandwidth() const
 {
   return pimpl_->get_write_bandwidth();
@@ -142,6 +148,12 @@ Disk::SharingPolicy Disk::get_sharing_policy(Operation op) const
   return this->pimpl_->get_sharing_policy(op);
 }
 
+Disk* Disk::set_factor_cb(const std::function<IoFactorCb>& cb)
+{
+  kernel::actor::simcall([this, &cb] { pimpl_->set_factor_cb(cb); });
+  return this;
+}
+
 Disk* Disk::seal()
 {
   kernel::actor::simcall([this]{ pimpl_->seal(); });