Skip to content

Deprecate MultiThreaderType aliases, use MultiThreaderBase directly#5692

Merged
hjmjohnson merged 2 commits into
InsightSoftwareConsortium:mainfrom
N-Dekker:Use-MultiThreaderBase-instead-of-MultiThreaderType
Dec 16, 2025
Merged

Deprecate MultiThreaderType aliases, use MultiThreaderBase directly#5692
hjmjohnson merged 2 commits into
InsightSoftwareConsortium:mainfrom
N-Dekker:Use-MultiThreaderBase-instead-of-MultiThreaderType

Conversation

@N-Dekker
Copy link
Copy Markdown
Contributor

ProcessObject::MultiThreaderType and ImageToImageMetric::MultiThreaderType are always just aliases of itk::MultiThreaderBase, the common base class of PlatformMultiThreader, PoolMultiThreader, and TBBMultiThreader. So it appears clearer to just use MultiThreaderBase directly.

Deprecated those aliases, ProcessObject::MultiThreaderType and ImageToImageMetric::MultiThreaderType.

`ProcessObject::MultiThreaderType` and `ImageToImageMetric::MultiThreaderType`
are always just aliases of `itk::MultiThreaderBase`, the common base class of
PlatformMultiThreader, PoolMultiThreader, and TBBMultiThreader. So it appears
clearer to just use MultiThreaderBase directly.
Asked users to use `itk::MultiThreaderBase` directly.
@github-actions github-actions Bot added area:Core Issues affecting the Core module area:Registration Issues affecting the Registration module labels Dec 15, 2025
Comment on lines -611 to +615
: m_WorkUnitInfo(static_cast<const typename MultiThreaderType::WorkUnitInfo *>(workunitInfoAsVoid))
: m_WorkUnitInfo(static_cast<const MultiThreaderBase::WorkUnitInfo *>(workunitInfoAsVoid))
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the typename keyword is not necessary for MultiThreaderBase::WorkUnitInfo 😃

@N-Dekker N-Dekker marked this pull request as ready for review December 15, 2025 22:28
@hjmjohnson hjmjohnson merged commit 1bd405d into InsightSoftwareConsortium:main Dec 16, 2025
17 checks passed
N-Dekker added a commit to N-Dekker/ITKLabelErodeDilate that referenced this pull request Jan 5, 2026
Following ITK pull request InsightSoftwareConsortium/ITK#5692
"Deprecate `MultiThreaderType` aliases, use `MultiThreaderBase` directly"
hjmjohnson pushed a commit to hjmjohnson/ITK that referenced this pull request Apr 19, 2026
Following ITK pull request InsightSoftwareConsortium#5692
"Deprecate `MultiThreaderType` aliases, use `MultiThreaderBase` directly"
hjmjohnson pushed a commit that referenced this pull request Apr 30, 2026
Following ITK pull request #5692
"Deprecate `MultiThreaderType` aliases, use `MultiThreaderBase` directly"
hjmjohnson added a commit to hjmjohnson/ITK that referenced this pull request May 6, 2026
…ultiThreaderBase-instead-of-MultiThreaderType

Deprecate `MultiThreaderType` aliases, use `MultiThreaderBase` directly
hjmjohnson pushed a commit to hjmjohnson/ITK that referenced this pull request May 6, 2026
Following ITK pull request InsightSoftwareConsortium#5692
"Deprecate `MultiThreaderType` aliases, use `MultiThreaderBase` directly"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Core Issues affecting the Core module area:Registration Issues affecting the Registration module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants