Geant4-11
Public Types | Public Member Functions
PTL::tbb::task_arena Class Reference

#include <ThreadData.hh>

Public Types

enum  parameter { not_initialized = -2 , automatic = -1 }
 

Public Member Functions

template<typename FuncT >
auto execute (FuncT &&_func) -> decltype(_func())
 
void initialize (int max_concurrency=automatic, unsigned reserved_for_masters=1)
 
 task_arena (int max_concurrency=automatic, unsigned reserved_for_masters=1)
 
 ~task_arena ()=default
 

Detailed Description

Definition at line 91 of file ThreadData.hh.

Member Enumeration Documentation

◆ parameter

Enumerator
not_initialized 
automatic 

Definition at line 94 of file ThreadData.hh.

95 {
96 not_initialized = -2,
97 automatic = -1
98 };

Constructor & Destructor Documentation

◆ task_arena()

PTL::tbb::task_arena::task_arena ( int  max_concurrency = automatic,
unsigned  reserved_for_masters = 1 
)
inline

Definition at line 100 of file ThreadData.hh.

101 {
102 (void) max_concurrency;
103 (void) reserved_for_masters;
104 }

◆ ~task_arena()

PTL::tbb::task_arena::~task_arena ( )
default

Member Function Documentation

◆ execute()

template<typename FuncT >
auto PTL::tbb::task_arena::execute ( FuncT &&  _func) -> decltype(_func())
inline

Definition at line 111 of file ThreadData.hh.

112 {
113 return _func();
114 }

Referenced by PTL::ThreadPool::destroy_threadpool().

◆ initialize()

void PTL::tbb::task_arena::initialize ( int  max_concurrency = automatic,
unsigned  reserved_for_masters = 1 
)

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