[gegl] gegl-parallel: add distribute_area() overload without split-strategy
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl-parallel: add distribute_area() overload without split-strategy
- Date: Wed, 14 Nov 2018 15:37:16 +0000 (UTC)
commit 15fa66d3237f2180ae31e830a8384223ddc98807
Author: Ell <ell_se yahoo com>
Date: Wed Nov 14 10:33:19 2018 -0500
gegl-parallel: add distribute_area() overload without split-strategy
When using C++, provide a gegl_parallel_distribute_area() overload
that doesn't take a GeglSplitStrategy argument, and uses the
GEGL_SPLIT_STRATEGY_AUTO strategy, which is the most common case.
gegl/gegl-parallel.h | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/gegl/gegl-parallel.h b/gegl/gegl-parallel.h
index 23cf04d6c..493ccdc5e 100644
--- a/gegl/gegl-parallel.h
+++ b/gegl/gegl-parallel.h
@@ -181,6 +181,16 @@ gegl_parallel_distribute_area (const GeglRectangle *area,
&func);
}
+template <class ParallelDistributeAreaFunc>
+inline void
+gegl_parallel_distribute_area (const GeglRectangle *area,
+ gdouble thread_cost,
+ ParallelDistributeAreaFunc func)
+{
+ gegl_parallel_distribute_area (area, thread_cost, GEGL_SPLIT_STRATEGY_AUTO,
+ func);
+}
+
}
#endif /* __cplusplus */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]