mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 11:27:15 +02:00
removed yield calls from hashers and comparers
This commit is contained in:
@ -24,7 +24,7 @@ struct transp_hash
|
||||
|
||||
template <class T> std::size_t operator()(T const& t) const noexcept
|
||||
{
|
||||
std::this_thread::yield();
|
||||
// std::this_thread::yield();
|
||||
return boost::hash<T>()(t);
|
||||
}
|
||||
};
|
||||
@ -35,7 +35,7 @@ struct transp_key_equal
|
||||
|
||||
template <class T, class U> 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<std::size_t>(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 <class T, class U> 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
|
||||
#endif // BOOST_UNORDERED_TEST_CFOA_HELPERS_HPP
|
||||
|
Reference in New Issue
Block a user