diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2019-09-25 18:31:49 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2019-09-25 18:31:49 +0300 |
commit | aea9a0bda5ffc7aac4ba5e8c6582893b7aad7d90 (patch) | |
tree | d5209ec744135e580d7702636064dfe37b7cd9f0 /programs/benchmark-iostreams | |
parent | a3942420524c91179009e06b9d77cfb4326dcf7f (diff) |
LLFIO is now make installable and cmake find_package()-able, which should implement cmake hunter support.
Significantly slimmed down the headers being dragged in by the default LLFIO include, specifically that outcome<T> is no longer dragged in, and:
- #36 Async file i/o and storage profile have been modularised out of the default headers.
- #36 Mapped file i/o can be modularised out of the default headers.
Changed barrier kind to class enum, as per latest WG21 spec.
Diffstat (limited to 'programs/benchmark-iostreams')
-rw-r--r-- | programs/benchmark-iostreams/main.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/programs/benchmark-iostreams/main.cpp b/programs/benchmark-iostreams/main.cpp index 2592c920..53606c5f 100644 --- a/programs/benchmark-iostreams/main.cpp +++ b/programs/benchmark-iostreams/main.cpp @@ -27,11 +27,7 @@ Distributed under the Boost Software License, Version 1.0. #define REGIONSIZE (100 * 1024 * 1024) #include "../../include/llfio/llfio.hpp" -#if __has_include("quickcpplib/include/algorithm/small_prng.hpp") -#include "quickcpplib/include/algorithm/small_prng.hpp" -#else -#include "../../include/llfio/v2.0/quickcpplib/include/algorithm/small_prng.hpp" -#endif +#include "quickcpplib/algorithm/small_prng.hpp" #include <chrono> #include <fstream> @@ -151,7 +147,7 @@ int main() auto th = llfio::file({}, "testfile", llfio::file_handle::mode::write, llfio::file_handle::creation::if_needed).value(); std::vector<char> buffer(REGIONSIZE, 'a'); th.write(0, {{(llfio::byte *) buffer.data(), buffer.size()}}).value(); - th.barrier({}, true, true).value(); + th.barrier({}, llfio::file_handle::barrier_kind::wait_all).value(); } { auto begin = nanoclock(); |