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 607 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 611 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 617 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 637 of file UT_ParallelUtil.h.

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

Definition at line 638 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 631 of file UT_ParallelUtil.h.

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

Definition at line 625 of file UT_ParallelUtil.h.


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