1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Fluid Internal Parallelism:

- add comments on signature of custom parallel_for
  - use cv::parallel_for_ by default
This commit is contained in:
Anton Potapov
2019-09-03 15:03:51 +03:00
parent 55c1720719
commit 758156a9b6
2 changed files with 27 additions and 4 deletions
@@ -106,7 +106,10 @@ struct GFluidParallelOutputRois
struct GFluidParallelFor
{
std::function<void(std::size_t, std::function<void(std::size_t)>)> parallel_for;
//this function accepts:
// - size of the "parallel" range as the first argument
// - and a function to be called on the range items, designated by item index
std::function<void(std::size_t size, std::function<void(std::size_t index)>)> parallel_for;
};
namespace detail