Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::task_group Class Reference

#include <task_group.h>

Inheritance diagram for tbb::task_group:
Collaboration diagram for tbb::task_group:

Public Member Functions

 task_group ()
 
template<typename F >
void run (F &&f)
 
template<typename F >
task_group_status run_and_wait (const F &f)
 
template<typename F >
task_group_status run_and_wait (task_handle< F > &h)
 
- Public Member Functions inherited from tbb::internal::task_group_base
 task_group_base (uintptr_t traits=0)
 
 ~task_group_base () __TBB_NOEXCEPT(false)
 
template<typename F >
void run (task_handle< F > &h)
 
task_group_status wait ()
 
bool is_canceling ()
 
void cancel ()
 

Additional Inherited Members

- Protected Member Functions inherited from tbb::internal::task_group_base
taskowner ()
 
template<typename F >
task_group_status internal_run_and_wait (F &f)
 
template<typename Task , typename F >
void internal_run (__TBB_FORWARDING_REF(F) f)
 
- Protected Attributes inherited from tbb::internal::task_group_base
empty_taskmy_root
 
task_group_context my_context
 

Detailed Description

Definition at line 182 of file task_group.h.

Constructor & Destructor Documentation

◆ task_group()

tbb::task_group::task_group ( )
inline

Definition at line 184 of file task_group.h.

References h, and tbb::internal::task_group_base::run().

Here is the call graph for this function:

Member Function Documentation

◆ run()

template<typename F >
void tbb::task_group::run ( F &&  f)
inline

Definition at line 197 of file task_group.h.

References type.

197  {
199  }
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain ITT_FORMAT p const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_id __itt_string_handle __itt_metadata_type type

◆ run_and_wait() [1/2]

template<typename F >
task_group_status tbb::task_group::run_and_wait ( const F &  f)
inline

Definition at line 208 of file task_group.h.

208  {
209  return internal_run_and_wait<const F>( f );
210  }

◆ run_and_wait() [2/2]

template<typename F >
task_group_status tbb::task_group::run_and_wait ( task_handle< F > &  h)
inline

Definition at line 214 of file task_group.h.

References h, and tbb::task_handle< F >::mark_scheduled().

214  {
215  h.mark_scheduled();
216  return internal_run_and_wait< task_handle<F> >( h );
217  }
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function h
Here is the call graph for this function:

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

Copyright © 2005-2019 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.