X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7f00b09c7ebfa3b4e12c96c764ee7a0e0e07ec20..HEAD:/src/s4u/s4u_Disk.cpp?ds=sidebyside diff --git a/src/s4u/s4u_Disk.cpp b/src/s4u/s4u_Disk.cpp index 9e3d59f8b3..c97f72bc00 100644 --- a/src/s4u/s4u_Disk.cpp +++ b/src/s4u/s4u_Disk.cpp @@ -17,7 +17,7 @@ namespace s4u { xbt::signal Disk::on_creation; xbt::signal Disk::on_destruction; -xbt::signal Disk::on_state_change; +xbt::signal Disk::on_onoff; const std::string& Disk::get_name() const { @@ -112,6 +112,16 @@ Disk* Disk::set_write_bandwidth_profile(kernel::profile::Profile* profile) [this, profile]() { this->pimpl_->set_write_bandwidth_profile(profile); }); return this; } +int Disk::get_concurrency_limit() const +{ + return pimpl_->get_concurrency_limit(); +} + +Disk* Disk::set_concurrency_limit(int limit) +{ + kernel::actor::simcall_object_access(pimpl_, [this, limit] { pimpl_->set_concurrency_limit(limit); }); + return this; +} IoPtr Disk::io_init(sg_size_t size, Io::OpType type) const {