From bbf6d3a9ac27e2425c3e4521a29168d9a547cc2e Mon Sep 17 00:00:00 2001 From: Fedor Moiseev <4365210+fedormsv@users.noreply.github.com> Date: Mon, 11 Mar 2024 16:43:36 +0100 Subject: [PATCH] build fix for static windows --- Common/Core/SMP/Common/vtkSMPToolsImpl.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Common/Core/SMP/Common/vtkSMPToolsImpl.h b/Common/Core/SMP/Common/vtkSMPToolsImpl.h index f336f1fe2d2..8ed35c982d5 100644 --- a/Common/Core/SMP/Common/vtkSMPToolsImpl.h +++ b/Common/Core/SMP/Common/vtkSMPToolsImpl.h @@ -62,7 +62,7 @@ public: bool GetNestedParallelism() { return this->NestedActivated; } //-------------------------------------------------------------------------------- - bool IsParallelScope() { return this->IsParallel; } + bool IsParallelScope(); //-------------------------------------------------------------------------------- bool GetSingleThread(); @@ -118,6 +118,12 @@ private: std::atomic<bool> IsParallel{ false }; }; +template <BackendType Backend> +bool vtkSMPToolsImpl<Backend>::IsParallelScope() +{ + return this->IsParallel; +} + using ExecuteFunctorPtrType = void (*)(void*, vtkIdType, vtkIdType, vtkIdType); VTK_ABI_NAMESPACE_END -- GitLab