ATLAS Offline Software
Loading...
Searching...
No Matches
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}