9class FixedSizeThreadPool;
18 const std::size_t numWorkers,
21 void(std::size_t workerIdx)
33 const std::size_t totalWorkSize,
34 const std::size_t numWorkers,
37 void(std::size_t workerIdx, std::size_t workBegin, std::size_t workEnd)
49 FixedSizeThreadPool& workers,
50 const std::size_t totalWorkSize,
53 void(std::size_t workerIdx, std::size_t workBegin, std::size_t workEnd)
The root for all renderer implementations.
Definition EEngineProject.h:6
void parallel_work(const std::size_t numWorkers, std::function< void(std::size_t workerIdx) > work)
Runs specified works in parallel. The function will block the calling thread until all works are comp...
Definition concurrent.cpp:14