Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2018-05-26 02:47:09 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2018-05-26 02:47:09 +0300
commit89f1d8a7c4c2c41dc1f52c7fbc93c59995460c6f (patch)
tree89d490db76e2caa49c1de663747f9bd6448b20a6 /example
parent217ee5c65b5487f5c97f285e090298d516068170 (diff)
Added a benchmark-iostreams program which was used to generate the graphs in WG21 P1028 and P1031.
Diffstat (limited to 'example')
-rw-r--r--example/use_cases.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/use_cases.cpp b/example/use_cases.cpp
index 2b495436..9c039c5f 100644
--- a/example/use_cases.cpp
+++ b/example/use_cases.cpp
@@ -98,8 +98,8 @@ void read_entire_file2()
{
afio::async_file_handle::buffer_type scatter_req{ buffers[n].first.data(), buffers[n].first.size() }; // buffer to fill
auto ret = afio::async_read( //
- fh, // handle to read from
- { { scatter_req } , 0 }, // The scatter request buffers
+ fh, // handle to read from
+ { { scatter_req }, valid_extents[n].first }, // The scatter request buffers + offset
[]( // The completion handler
afio::async_file_handle *, // The parent handle
afio::async_file_handle::io_result<afio::async_file_handle::buffers_type> & // Result of the i/o