A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Create Disk::set_readwrite_bandwidth
[simgrid.git]
/
src
/
s4u
/
s4u_Disk.cpp
diff --git
a/src/s4u/s4u_Disk.cpp
b/src/s4u/s4u_Disk.cpp
index
d3f3a46
..
7ad08c3
100644
(file)
--- a/
src/s4u/s4u_Disk.cpp
+++ b/
src/s4u/s4u_Disk.cpp
@@
-47,6
+47,12
@@
double Disk::get_read_bandwidth() const
return pimpl_->get_read_bandwidth();
}
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();
double Disk::get_write_bandwidth() const
{
return pimpl_->get_write_bandwidth();