Loading...
Searching...
No Matches
parallel_rows.h File Reference
Run independent row work with a bounded native thread team. More...
#include <algorithm>#include <atomic>#include <exception>#include <mutex>#include <thread>#include <vector>
Include dependency graph for parallel_rows.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Namespaces | |
| namespace | pangea_survey |
Functions | |
| template<class Function> | |
| void | pangea_survey::parallelRows (int rows, Function function, unsigned requested=4) |
| Apply a row operation in parallel without creating nested teams. | |
Variables | |
| unsigned | pangea_survey::parallelRowsDepth = 0 |
Detailed Description
Run independent row work with a bounded native thread team.
Nested callers fall back to serial execution so inner helpers do not multiply worker counts and oversubscribe a small processor. Exceptions are captured on workers and rethrown only after every thread has joined.
Definition in file parallel_rows.h.