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
Change the way IO activities are initiated
[simgrid.git]
/
src
/
s4u
/
s4u_Disk.cpp
diff --git
a/src/s4u/s4u_Disk.cpp
b/src/s4u/s4u_Disk.cpp
index
989348e
..
10b19e4
100644
(file)
--- a/
src/s4u/s4u_Disk.cpp
+++ b/
src/s4u/s4u_Disk.cpp
@@
-52,7
+52,7
@@
void Disk::set_property(const std::string& key, const std::string& value)
IoPtr Disk::io_init(sg_size_t size, Io::OpType type)
{
- return Io
Ptr(new Io(this, size, type)
);
+ return Io
::init()->set_disk(this)->set_size(size)->set_op_type(type
);
}
IoPtr Disk::read_async(sg_size_t size)