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

#include <UT_ParallelUtil.h>

Public Member Functions

 ut_ReduceTaskScopedBody (Body *body)
 
 ut_ReduceTaskScopedBody (ut_ReduceTaskScopedBody &src, UT_Split)
 
void operator() (const Range &r)
 
void join (ut_ReduceTaskScopedBody &other)
 
const Body & body () const
 
Body & body ()
 

Detailed Description

template<typename Range, typename Body>
class ut_ReduceTaskScopedBody< Range, Body >

Helper class for UTparallelReduce(). Wraps the thread body in a task scope so that thread stats are collected by the performance monitor, and child tasks can inherit task scope locks from the parent task.

Definition at line 605 of file UT_ParallelUtil.h.

Constructor & Destructor Documentation

template<typename Range, typename Body>
ut_ReduceTaskScopedBody< Range, Body >::ut_ReduceTaskScopedBody ( Body *  body)
inline

Definition at line 609 of file UT_ParallelUtil.h.

template<typename Range, typename Body>
ut_ReduceTaskScopedBody< Range, Body >::ut_ReduceTaskScopedBody ( ut_ReduceTaskScopedBody< Range, Body > &  src,
UT_Split   
)
inline

Definition at line 615 of file UT_ParallelUtil.h.

Member Function Documentation

template<typename Range, typename Body>
const Body& ut_ReduceTaskScopedBody< Range, Body >::body ( ) const
inline

Definition at line 635 of file UT_ParallelUtil.h.

template<typename Range, typename Body>
Body& ut_ReduceTaskScopedBody< Range, Body >::body ( )
inline

Definition at line 636 of file UT_ParallelUtil.h.

template<typename Range, typename Body>
void ut_ReduceTaskScopedBody< Range, Body >::join ( ut_ReduceTaskScopedBody< Range, Body > &  other)
inline

Definition at line 629 of file UT_ParallelUtil.h.

template<typename Range, typename Body>
void ut_ReduceTaskScopedBody< Range, Body >::operator() ( const Range &  r)
inline

Definition at line 623 of file UT_ParallelUtil.h.


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