[Insight-developers] ImageRegionConstIterator - thread safe?

Luis Ibanez luis.ibanez at kitware.com
Sun Apr 10 18:38:07 EDT 2011


Hi Marius,

I would think that it is thread-safe,

at least in the sense that a "Const" iterator
will not modify its internal member variables.

A "grep" didn't return any instances of "mutable"
in this family of classes either,

So it looks safe...

I wish there was a less uncertain way of
making this determination...


      Luis


-----------------------------------------------------------
On Tue, Apr 5, 2011 at 5:18 PM, M Stauffer (V) <mstauff at verizon.net> wrote:
> Hi,
>
> Does anyone know if ImageRegionConstIterator is thread-safe for
> read-only operations?
>
> I'm trying to determine the thread-safety of
> itkBSplineDeformaableTransform::TransformPoint( const InputPointType &
> point, OutputPointType & outputPoint,  WeightsType & weights,
> ParameterIndexArrayType & indices, bool & inside). The
> ImageRegionConstIterator used here is the only unknown for me at this
> point, the rest of it looks thread-safe.
>
> I can look at ImageRegionConstIterator myself in detail, but thought I'd
> check first if someone else already knows.
>
> Cheers,
> Michael
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>


More information about the Insight-developers mailing list