Illustrated C/C++ source sheets, symbol index, API relationship graph, compiler console and debug trace

LIVE AI / FLEXIBLE SENSING / FLIGHT CONTEXT

Sensoraia API

Live AI and sensing, connected to the flight.
See, listen, inspect and return supported results while airborne.

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.