[prev in list] [next in list] [prev in thread] [next in thread]
List: insight-users
Subject: Re: [Insight-users] Cannot run the Resampling filter
From: Karthik Krishnan <karthik.krishnan () kitware ! com>
Date: 2009-11-30 4:50:53
Message-ID: 9ddb27260911292050n7d43d199v1eb28cf7faf47e9b () mail ! gmail ! com
[Download RAW message or body]
On Sun, Nov 29, 2009 at 4:36 PM, Bill Lorensen <bill.lorensen@gmail.com> wrote:
> On any filter, you can filter->SetNumberOfThreads(1);
>
> See if that works.
>
> Even though we fixed the problem, we should look at the possibility of
> making itk::KdTree thread safe.
Ouch. It isn't thread safe..
The methods invoked by a user (and Motes here) are const methods on
the KdTree. But most of its ivars are mutable ! Perhaps the
implementation should be modified to ensure that the those mutable
ivars were done away with, (or if unavoidable mutexed).
I've added a documentation to the class' header file to that effect.
Actually I should add it to the relevant methods, but from a cursory
examination, it seems to apply to most const queries.
Thanks
--
karthik
_____________________________________
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://www.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-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic