X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/555ebc2e544437445450239b48e7df9b4f371460..2a6c5ce52acb820ea198f6c97cfbe0060219ed4f:/include/simgrid/s4u/Disk.hpp diff --git a/include/simgrid/s4u/Disk.hpp b/include/simgrid/s4u/Disk.hpp index 5ba6306774..6d8e00dcae 100644 --- a/include/simgrid/s4u/Disk.hpp +++ b/include/simgrid/s4u/Disk.hpp @@ -57,6 +57,17 @@ public: Disk* set_write_bandwidth(double write_bw); double get_write_bandwidth() const; + /** + * @brief Set limit for read/write operations. + * + * This determines the limit for read and write operation in the same disk. + * Usually, it's configured to max(read_bw, write_bw). + * You can change this behavior using this method + * + * @param bw New bandwidth for the disk + */ + Disk* set_readwrite_bandwidth(double bw); + const std::unordered_map* get_properties() const; const char* get_property(const std::string& key) const; Disk* set_property(const std::string&, const std::string& value);