HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ut_ForEachNumberBody< IntType, Body > Class Template Reference

#include <UT_ParallelUtil.h>

Public Member Functions

 ut_ForEachNumberBody (const Body &body, SYS_AtomicInt< IntType > &it, IntType end)
 
void operator() (const UT_BlockedRange< IntType > &range) const
 

Detailed Description

template<typename IntType, typename Body>
class ut_ForEachNumberBody< IntType, Body >

Helper class for UTparallelForEachNumber() This wraps the thread body to perform different load balancing based on peeling off tasks using an atomic int to iterate over the range. IntType must be an integer type supported by SYS_AtomicInt (currently int32 or int64).

Definition at line 202 of file UT_ParallelUtil.h.

Constructor & Destructor Documentation

template<typename IntType , typename Body >
ut_ForEachNumberBody< IntType, Body >::ut_ForEachNumberBody ( const Body &  body,
SYS_AtomicInt< IntType > &  it,
IntType  end 
)
inline

Definition at line 205 of file UT_ParallelUtil.h.

Member Function Documentation

template<typename IntType , typename Body >
void ut_ForEachNumberBody< IntType, Body >::operator() ( const UT_BlockedRange< IntType > &  range) const
inline

Definition at line 212 of file UT_ParallelUtil.h.


The documentation for this class was generated from the following file: