Does anyone have experience using vtkDataSet::FindCell() in a multithreaded environment? Any help would be appreciated.<br><br><div class="gmail_quote">On Wed, Oct 27, 2010 at 12:40 PM, John Haiducek <span dir="ltr"><<a href="mailto:jhaiduce@gmail.com">jhaiduce@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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?<br>
</blockquote></div><br>