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

#include <ThreadData.hh>

Public Types

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

Public Member Functions

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

Detailed Description

Definition at line 95 of file ThreadData.hh.

Member Enumeration Documentation

◆ parameter

Enumerator
not_initialized 
automatic 

Definition at line 98 of file ThreadData.hh.

99 {
100 not_initialized = -2,
101 automatic = -1
102 };

Constructor & Destructor Documentation

◆ task_arena()

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

Definition at line 104 of file ThreadData.hh.

105 {
106 (void) max_concurrency;
107 (void) reserved_for_masters;
108 }

◆ ~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 115 of file ThreadData.hh.

116 {
117 return _func();
118 }

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: