Skip to content

Commit

Permalink
COMP: Fix MultiThreaderSingle typos
Browse files Browse the repository at this point in the history
The top of MultipleMethodExecute() in itkPlatformMultiThreaderSingle.cxx
was outdated. I have copied two lines from itkPlatformMultiThreaderWindows.cxx
in order to fix it. This problem was mentioned in as an issue but
not yet fixed: #3163.
  • Loading branch information
fabian-philips authored and N-Dekker committed Feb 10, 2024
1 parent 8440914 commit a5d9526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/Core/Common/src/itkPlatformMultiThreaderSingle.cxx
Expand Up @@ -39,9 +39,9 @@ PlatformMultiThreader::MultipleMethodExecute()
ThreadIdType thread_loop;

// obey the global maximum number of threads limit
if (m_NumberOfWorkUnits > m_GlobalMaximumNumberOfThreads)
if (m_NumberOfWorkUnits > MultiThreaderBase::GetGlobalMaximumNumberOfThreads())
{
m_NumberOfWorkUnits = m_GlobalMaximumNumberOfThreads;
m_NumberOfWorkUnits = MultiThreaderBase::GetGlobalMaximumNumberOfThreads();
}

for (thread_loop = 0; thread_loop < m_NumberOfWorkUnits; ++thread_loop)
Expand Down

0 comments on commit a5d9526

Please sign in to comment.