[vtkusers] FindCell in multithreaded application
Bill Lorensen
bill.lorensen at gmail.com
Fri Oct 29 23:42:58 EDT 2010
Can you post a small compilable example that exhibits this behavior?
If the thread-safe call is not thread-safe, then there is a bug.
Bill
On Fri, Oct 29, 2010 at 5:23 PM, John Haiducek <jhaiduce at gmail.com> wrote:
> Does anyone have experience using vtkDataSet::FindCell() in a multithreaded
> environment? Any help would be appreciated.
>
> On Wed, Oct 27, 2010 at 12:40 PM, John Haiducek <jhaiduce at gmail.com> wrote:
>>
>> I have a multithreaded application which calls vtkDataSet::FindCell many
>> times. Even though I'm using the thread-safe version of FindCell, I get
>> occasional segmentation faults when I call FindCell, unless I protect the
>> calls to FindCell with a pthread_mutex_lock(). As I understand it, FindCell
>> shouldn't need this as long as the first call to FindCell on that dataset is
>> protected with a pthread_mutex_lock. Is this correct? Is there some way to
>> safely use FindCell() in parallel within a threaded application?
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
More information about the vtkusers
mailing list