12#ifndef ROOT_TBranchIMTHelper
13#define ROOT_TBranchIMTHelper
35 template<
typename FN>
void Run(
const FN &lambda) {
38 fGroup->Run( [
this, lambda]() {
39 auto nbytes = lambda();
A class to manage the asynchronous execution of work items.
A helper class for managing IMT work during TTree:Fill operations.
void Run(const FN &lambda)
std::unique_ptr< TaskGroup_t > fGroup
std::atomic< Long64_t > fBytes
Total number of bytes written by this helper.
ROOT::Experimental::TTaskGroup TaskGroup_t
std::atomic< Int_t > fNerrors
Total error count of all tasks done by this helper.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...