diff options
Diffstat (limited to 'source/blender/functions/FN_multi_function_parallel.hh')
-rw-r--r-- | source/blender/functions/FN_multi_function_parallel.hh | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/source/blender/functions/FN_multi_function_parallel.hh b/source/blender/functions/FN_multi_function_parallel.hh index b5b3e2f2f94..84c57efd434 100644 --- a/source/blender/functions/FN_multi_function_parallel.hh +++ b/source/blender/functions/FN_multi_function_parallel.hh @@ -20,5 +20,20 @@ * \ingroup fn */ +#include "FN_multi_function.hh" + namespace blender::fn { -} + +class ParallelMultiFunction : public MultiFunction { + private: + const MultiFunction &fn_; + const int64_t grain_size_; + bool threading_supported_; + + public: + ParallelMultiFunction(const MultiFunction &fn, const int64_t grain_size); + + void call(IndexMask mask, MFParams params, MFContext context) const override; +}; + +} // namespace blender::fn |