[vtkusers] FindCell in multithreaded application

John Haiducek jhaiduce at gmail.com
Fri Oct 29 17:23:17 EDT 2010


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?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101029/23c2594a/attachment.htm>


More information about the vtkusers mailing list