ParallelFor::Granularity Struct Reference

#include <parallelfor.h>

Inheritance diagram for ParallelFor::Granularity:

Public Member Functions

constexpr Granularity ()
 
constexpr Granularity (Int granularity)
 
constexpr Granularity (Int granularity, Bool enableThreading)
 
constexpr Granularity (const Granularity &granularity)
 
constexpr Granularity (const Granularity &granularity, Bool enableThreading)
 

Public Attributes

const Int value
 

Constructor & Destructor Documentation

◆ Granularity() [1/5]

constexpr Granularity ( )
constexpr

Default granularity.

◆ Granularity() [2/5]

constexpr Granularity ( Int  granularity)
explicitconstexpr
Parameters
[in]granularityNumber of iterations a worker thread will perfom en block.

◆ Granularity() [3/5]

constexpr Granularity ( Int  granularity,
Bool  enableThreading 
)
constexpr
Parameters
[in]granularityNumber of iterations a worker thread will perfom en block.
[in]enableThreadingTrue: Parallelize loop False: Single threaded loop.

◆ Granularity() [4/5]

constexpr Granularity ( const Granularity granularity)
constexpr

◆ Granularity() [5/5]

constexpr Granularity ( const Granularity granularity,
Bool  enableThreading 
)
constexpr

Member Data Documentation

◆ value

const Int value