InsightSoftwareConsortium / ITKModuleTemplate

A template to start an ITK Module
https://itk.org/ITKSoftwareGuide/html/Book1/ITKSoftwareGuide-Book1ch9.html#x50-1430009
Apache License 2.0
12 stars 17 forks source link

ENH: Updates Multithreading API calls to be updated for ITKv5.0 #30

Closed fbudin69500 closed 6 years ago

fbudin69500 commented 6 years ago

@dzenanz : This is one of the places in ITK where I found a similar implementation: https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Filtering/ImageSources/include/itkGaussianImageSource.hxx#L111

dzenanz commented 6 years ago

That is done directly in GenerateData method, which is the equivalent of thread 0. Only ThreadedGenerateData methods can have "threadId" different from 0. So no issue there.