Shortcuts

Template Struct Stealer< StealPolicy::random >

Struct Documentation

template<>
struct ripple::Stealer<StealPolicy::random>

Specialization for a random stealing policy.

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 random index of the thread to steal from.

Parameters
  • curr_id: The current index.

  • total_ids: The total number of all indices.

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples