ATLAS Offline Software
Functions
pool.cxx File Reference
#include "pool.h"
#include <thread>
#include <mutex>
Include dependency graph for pool.cxx:

Go to the source code of this file.

Functions

void process (const WorkList &workList, const size_t nThreads)
 

Function Documentation

◆ process()

void process ( const WorkList workList,
const size_t  nThreads 
)

Definition at line 44 of file pool.cxx.

45 {
46  WorkList_cit begin(std::begin(workList)), end(std::end(workList));
47  if (nThreads == 0) {
48  worker(begin, end);
49  } else {
50  Threads(nThreads, [&](){ worker(begin, end); });
51  }
52 }
DoubleEventSelectorOverlayTest.nThreads
nThreads
Definition: DoubleEventSelectorOverlayTest.py:83
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93