From cfd4829da54732b26fdf628fbeffb2986f888abe Mon Sep 17 00:00:00 2001 From: joaquintides Date: Sun, 23 Apr 2023 21:24:17 +0200 Subject: [PATCH] removed yield calls from hashers and comparers --- test/cfoa/helpers.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/cfoa/helpers.hpp b/test/cfoa/helpers.hpp index b5fa1046..497c693d 100644 --- a/test/cfoa/helpers.hpp +++ b/test/cfoa/helpers.hpp @@ -24,7 +24,7 @@ struct transp_hash template std::size_t operator()(T const& t) const noexcept { - std::this_thread::yield(); + // std::this_thread::yield(); return boost::hash()(t); } }; @@ -35,7 +35,7 @@ struct transp_key_equal template bool operator()(T const& lhs, U const& rhs) const { - std::this_thread::yield(); + // std::this_thread::yield(); return lhs == rhs; } }; @@ -59,7 +59,7 @@ struct stateful_hash { std::size_t h = static_cast(x_); boost::hash_combine(h, t); - std::this_thread::yield(); + // std::this_thread::yield(); return h; } @@ -96,7 +96,7 @@ struct stateful_key_equal template bool operator()(T const& t, U const& u) const { - std::this_thread::yield(); + // std::this_thread::yield(); return t == u; } @@ -387,4 +387,4 @@ void check_raii_counts() raii::destructor); } -#endif // BOOST_UNORDERED_TEST_CFOA_HELPERS_HPP \ No newline at end of file +#endif // BOOST_UNORDERED_TEST_CFOA_HELPERS_HPP