[vtkusers] a question vtk, python and threading

Charl Botha c.p.botha at tudelft.nl
Fri Jan 29 17:34:29 EST 2010


2010/1/29 Lic. José M. Rodriguez Bacallao <jmrbcu at gmail.com>:
> well, I've digged in the source code in vtk 5.4.2 and it is not done
> yet, maybe for the next release, this patch rocks. For now, I have
> patched the source of vtk 5.4.2 with the patches provided by DRE and
> it seems to work very well as long as U don't have any python
> observers listening for events in a vtk object created in another
> thread, you cuold only observe in the same thread that created the
> observed object. Besides that, everything work like a charm until now.
>
> On 1/29/10, David Gobbi <david.gobbi at gmail.com> wrote:
>> If Charl was still active on the list, I'm sure he would have a quick
>> answer, but it seems that no-one who is familiar with the GIL in VTK
>> is responding.  So your best bet is to look at the source code and
>> find out the answer yourself.

I'm still here, just currently very busy so I'm not covering the list with 100%.

The patch is indeed not yet applied in VTK CVS. AFAICR, you're right
that it doesn't cover the situation where an observer from a different
thread has subscribed to an object.  Taking care of this correctly
would mean huge changes to VTK, so pragmatism dictates that one lives
with this limitation.

See you,
Charl



More information about the vtkusers mailing list