Skip to content

Commit

Permalink
COMP: ITK_THREAD_RETURN_DEFAULT_VALUE with WASI toolchain
Browse files Browse the repository at this point in the history
To address:

```
In file included from /work/wasi-build/_deps/elx-src/Common/ImageSamplers/itkImageToVectorContainerFilter.h:197:
/work/wasi-build/_deps/elx-src/Common/ImageSamplers/itkImageToVectorContainerFilter.hxx:284:46: error: expected unqualified-id
  return itk::ITK_THREAD_RETURN_DEFAULT_VALUE;
```
  • Loading branch information
thewtex authored and N-Dekker committed Jun 22, 2023
1 parent c74c68b commit c47889a
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions Common/CostFunctions/itkAdvancedImageToImageMetric.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ AdvancedImageToImageMetric<TFixedImage, TMovingImage>::GetValueThreaderCallback(

temp->st_Metric->ThreadedGetValue(threadID);

return itk::ITK_THREAD_RETURN_DEFAULT_VALUE;
return ITK_THREAD_RETURN_DEFAULT_VALUE;

} // end GetValueThreaderCallback()

Expand Down Expand Up @@ -819,7 +819,7 @@ AdvancedImageToImageMetric<TFixedImage, TMovingImage>::GetValueAndDerivativeThre

temp->st_Metric->ThreadedGetValueAndDerivative(threadID);

return itk::ITK_THREAD_RETURN_DEFAULT_VALUE;
return ITK_THREAD_RETURN_DEFAULT_VALUE;

} // end GetValueAndDerivativeThreaderCallback()

Expand Down Expand Up @@ -881,7 +881,7 @@ AdvancedImageToImageMetric<TFixedImage, TMovingImage>::AccumulateDerivativesThre
temp->st_DerivativePointer[j] = tmp * normalization;
}

return itk::ITK_THREAD_RETURN_DEFAULT_VALUE;
return ITK_THREAD_RETURN_DEFAULT_VALUE;

} // end AccumulateDerivativesThreaderCallback()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ ParzenWindowHistogramImageToImageMetric<TFixedImage, TMovingImage>::ComputePDFsT

temp->m_Metric->ThreadedComputePDFs(threadId);

return itk::ITK_THREAD_RETURN_DEFAULT_VALUE;
return ITK_THREAD_RETURN_DEFAULT_VALUE;

} // end ComputePDFsThreaderCallback()

Expand Down
2 changes: 1 addition & 1 deletion Common/ImageSamplers/itkImageToVectorContainerFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ ImageToVectorContainerFilter<TInputImage, TOutputVectorContainer>::ThreaderCallb
// few threads idle.
// }

return itk::ITK_THREAD_RETURN_DEFAULT_VALUE;
return ITK_THREAD_RETURN_DEFAULT_VALUE;

} // end ThreaderCallback()

Expand Down
2 changes: 1 addition & 1 deletion Common/Transforms/itkAdvancedImageMomentsCalculator.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ AdvancedImageMomentsCalculator<TImage>::ComputeThreaderCallback(void * arg)
/** Call the real implementation. */
temp->st_Self->ThreadedCompute(threadID);

return itk::ITK_THREAD_RETURN_DEFAULT_VALUE;
return ITK_THREAD_RETURN_DEFAULT_VALUE;

} // end ComputeThreaderCallback()

Expand Down
2 changes: 1 addition & 1 deletion Common/itkComputeDisplacementDistribution.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ ComputeDisplacementDistribution<TFixedImage, TTransform>::ComputeThreaderCallbac
/** Call the real implementation. */
temp->st_Self->ThreadedCompute(threadID);

return itk::ITK_THREAD_RETURN_DEFAULT_VALUE;
return ITK_THREAD_RETURN_DEFAULT_VALUE;

} // end ComputeThreaderCallback()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ ParzenWindowMutualInformationImageToImageMetric<TFixedImage, TMovingImage>::Comp

temp->m_Metric->ThreadedComputeDerivativeLowMemory(threadId);

return itk::ITK_THREAD_RETURN_DEFAULT_VALUE;
return ITK_THREAD_RETURN_DEFAULT_VALUE;

} // end ComputeDerivativeLowMemoryThreaderCallback()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ AdvancedNormalizedCorrelationImageToImageMetric<TFixedImage, TMovingImage>::Accu
temp->st_DerivativePointer[j] = (derivativeF - sfm_smm * derivativeM) * invertedDenominator;
}

return itk::ITK_THREAD_RETURN_DEFAULT_VALUE;
return ITK_THREAD_RETURN_DEFAULT_VALUE;

} // end AccumulateDerivativesThreaderCallback()

Expand Down
4 changes: 2 additions & 2 deletions Components/Metrics/PCAMetric/itkPCAMetric_F_multithreaded.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ PCAMetric<TFixedImage, TMovingImage>::GetSamplesThreaderCallback(void * arg)

temp->m_Metric->ThreadedGetSamples(threadId);

return itk::ITK_THREAD_RETURN_DEFAULT_VALUE;
return ITK_THREAD_RETURN_DEFAULT_VALUE;

} // GetSamplesThreaderCallback()

Expand Down Expand Up @@ -1088,7 +1088,7 @@ PCAMetric<TFixedImage, TMovingImage>::ComputeDerivativeThreaderCallback(void * a

temp->m_Metric->ThreadedComputeDerivative(threadId);

return itk::ITK_THREAD_RETURN_DEFAULT_VALUE;
return ITK_THREAD_RETURN_DEFAULT_VALUE;

} // end omputeDerivativeThreaderCallback()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ StochasticVarianceReducedGradientDescentOptimizer::AdvanceOneStepThreaderCallbac
/** Call the real implementation. */
temp->t_Optimizer->ThreadedAdvanceOneStep(threadID, *(temp->t_NewPosition));

return itk::ITK_THREAD_RETURN_DEFAULT_VALUE;
return ITK_THREAD_RETURN_DEFAULT_VALUE;

} // end AdvanceOneStepThreaderCallback()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ StochasticGradientDescentOptimizer::AdvanceOneStepThreaderCallback(void * arg)
/** Call the real implementation. */
temp->t_Optimizer->ThreadedAdvanceOneStep(threadID, *(temp->t_NewPosition));

return itk::ITK_THREAD_RETURN_DEFAULT_VALUE;
return ITK_THREAD_RETURN_DEFAULT_VALUE;

} // end AdvanceOneStepThreaderCallback()

Expand Down

0 comments on commit c47889a

Please sign in to comment.