class Thread

Subclassed by feasst::ThreadOMP

Public Functions

virtual bool is_enabled() const = 0

Return true if parallel library is enabled.

virtual int num() const = 0

Return the number of threads.

virtual int thread() const = 0

Return the thread index;.

bool in_chunk(const int iteration, const int total_iterations, const int node = 0, const int num_nodes = 1) const

Return true if the current iteration of a large task that is broken into chunks is to be performed by this processor.

param node:

Index of node, for parallelizing over multiple nodes. Each node is assumed to have the same number of threads.

param num_nodes:

Total number of nodes.