Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
PTL::tbb::task_group Class Reference

#include <ThreadData.hh>

Public Member Functions

 task_group ()
 
void wait ()
 
template<typename FuncT >
void run (FuncT f)
 
template<typename FuncT >
void run_and_wait (FuncT f)
 

Detailed Description

Definition at line 50 of file ThreadData.hh.

Constructor & Destructor Documentation

◆ task_group()

PTL::tbb::task_group::task_group ( )
inline

Definition at line 54 of file ThreadData.hh.

54{}

Member Function Documentation

◆ run()

template<typename FuncT >
void PTL::tbb::task_group::run ( FuncT  f)
inline

Definition at line 59 of file ThreadData.hh.

60 {
61 f();
62 }

Referenced by PTL::ThreadPool::execute_on_all_threads(), and PTL::ThreadPool::run_on_this().

◆ run_and_wait()

template<typename FuncT >
void PTL::tbb::task_group::run_and_wait ( FuncT  f)
inline

Definition at line 65 of file ThreadData.hh.

66 {
67 f();
68 }

◆ wait()

void PTL::tbb::task_group::wait ( )
inline

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