Template Struct Stealer< StealPolicy::neighbour >¶
Defined in File stealer.hpp
Struct Documentation¶
-
template<>
structripple
::
Stealer
<StealPolicy::neighbour>¶ Specialization for a nearest neighbour stealing policy.
This steal from the next thread index, wrapped around.
Public Functions
-
auto
operator()
(uint32_t curr_id, uint32_t total_ids) const noexcept -> uint32_t¶ Overload of call operator to get the index to steal from.
- Return
The index of the neighbour ro steal from.
- Parameters
curr_id
: The current index.total_ids
: The total number of all indices.
-
auto