Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::tbbWrap::task_arena Class Reference

#include <acts/blob/sPHENIX/Examples/Framework/include/ActsExamples/Utilities/tbbWrap.hpp>

Public Member Functions

 task_arena (int nthreads=tbb::task_arena::automatic, unsigned ACTS_EXAMPLES_WITH_TBB(res)=1)
 
template<typename F >
void execute (const F &f)
 

Private Attributes

std::optional< tbb::task_arena > tbb
 

Detailed Description

Small wrapper for tbb::task_arena. Note that the tbbWrap::task_arena constructor is not thread-safe. That should be fine because the task_arena is initialised before spawning any threads.

Definition at line 91 of file tbbWrap.hpp.

View newest version in sPHENIX GitHub at line 91 of file tbbWrap.hpp

Constructor & Destructor Documentation

ActsExamples::tbbWrap::task_arena::task_arena ( int  nthreads = tbb::task_arena::automatic,
unsigned   ACTS_EXAMPLES_WITH_TBBres = 1 
)
inline

Definition at line 97 of file tbbWrap.hpp.

View newest version in sPHENIX GitHub at line 97 of file tbbWrap.hpp

References ActsExamples::tbbWrap::enableTBB(), and tbb.

+ Here is the call graph for this function:

Member Function Documentation

template<typename F >
void ActsExamples::tbbWrap::task_arena::execute ( const F f)
inline

Definition at line 107 of file tbbWrap.hpp.

View newest version in sPHENIX GitHub at line 107 of file tbbWrap.hpp

References f, and tbb.

Referenced by ActsExamples::Sequencer::run().

+ Here is the caller graph for this function:

Member Data Documentation

std::optional<tbb::task_arena> ActsExamples::tbbWrap::task_arena::tbb
private

Definition at line 93 of file tbbWrap.hpp.

View newest version in sPHENIX GitHub at line 93 of file tbbWrap.hpp

Referenced by execute(), and task_arena().


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