#include "pool.h"
#include <thread>
#include <mutex>
Go to the source code of this file.
◆ 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}