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
kill an unused function
[simgrid.git]
/
src
/
s4u
/
s4u_Storage.cpp
diff --git
a/src/s4u/s4u_Storage.cpp
b/src/s4u/s4u_Storage.cpp
index
aba158e
..
b9828c0
100644
(file)
--- a/
src/s4u/s4u_Storage.cpp
+++ b/
src/s4u/s4u_Storage.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2006-201
8
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2006-201
9
. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
@@
-63,6
+63,14
@@
IoPtr Storage::io_init(sg_size_t size, Io::OpType type)
return res;
}
return res;
}
+IoPtr Storage::read_async(sg_size_t size)
+{
+
+ IoPtr res = io_init(size, Io::OpType::READ);
+ res->start();
+ return res;
+}
+
sg_size_t Storage::read(sg_size_t size)
{
IoPtr i = io_init(size, Io::OpType::READ);
sg_size_t Storage::read(sg_size_t size)
{
IoPtr i = io_init(size, Io::OpType::READ);
@@
-70,6
+78,14
@@
sg_size_t Storage::read(sg_size_t size)
return i->get_performed_ioops();
}
return i->get_performed_ioops();
}
+IoPtr Storage::write_async(sg_size_t size)
+{
+
+ IoPtr res = io_init(size, Io::OpType::WRITE);
+ res->start();
+ return res;
+}
+
sg_size_t Storage::write(sg_size_t size)
{
IoPtr i = io_init(size, Io::OpType::WRITE);
sg_size_t Storage::write(sg_size_t size)
{
IoPtr i = io_init(size, Io::OpType::WRITE);
@@
-77,13
+93,6
@@
sg_size_t Storage::write(sg_size_t size)
return i->get_performed_ioops();
}
return i->get_performed_ioops();
}
-// Deprecated functions
-void getStorageList(std::map<std::string, Storage*>* whereTo)
-{
- for (auto const& s : simgrid::s4u::Engine::get_instance()->get_all_storages())
- whereTo->insert({s->get_name(), s});
-}
-
} /* namespace s4u */
} /* namespace simgrid */
} /* namespace s4u */
} /* namespace simgrid */