Re: Mixing Python and C threads

2007-08-13 Thread Stéphane Larouche
Aahz pythoncraft.com> writes: > > In article python.org>, > =?utf-8?b?U3TDqXBoYW5l?= Larouche polymtl.ca> wrote: > >Aahz pythoncraft.com> writes: > >> > >> Can you reproduce your problem with stub code that only creates threads? > >> If yes, that indicates that you're messing with a thread s

Re: Mixing Python and C threads

2007-07-07 Thread Aahz
In article <[EMAIL PROTECTED]>, =?utf-8?b?U3TDqXBoYW5l?= Larouche <[EMAIL PROTECTED]> wrote: >Aahz pythoncraft.com> writes: >> >> Can you reproduce your problem with stub code that only creates threads? >> If yes, that indicates that you're messing with a thread structure >> somewhere. Note that

Re: Mixing Python and C threads

2007-07-07 Thread Stéphane Larouche
Aahz pythoncraft.com> writes: > Can you reproduce your problem with stub code that only creates threads? > If yes, that indicates that you're messing with a thread structure > somewhere. Note that because you're using gcc, it's possible there's a > thread bug on Windows with your tool chain. Yo

Re: Mixing Python and C threads

2007-07-07 Thread Aahz
In article <[EMAIL PROTECTED]>, =?utf-8?b?U3TDqXBoYW5l?= Larouche <[EMAIL PROTECTED]> wrote: >Aahz pythoncraft.com> writes: >> In article python.org>, >> =?utf-8?b?U3TDqXBoYW5l?= Larouche polymtl.ca> wrote: >>> >>>If I call the methods in the C++ modules from the Python main thread, I >>>don't

Re: Mixing Python and C threads

2007-07-06 Thread Stéphane Larouche
Aahz pythoncraft.com> writes: > In article python.org>, > =?utf-8?b?U3TDqXBoYW5l?= Larouche polymtl.ca> wrote: > > > >If I call the methods in the C++ modules from the Python main thread, I > >don't have any problem. However, they are usually called from another > >Python thread (using the thre

Re: Mixing Python and C threads

2007-07-06 Thread Aahz
In article <[EMAIL PROTECTED]>, =?utf-8?b?U3TDqXBoYW5l?= Larouche <[EMAIL PROTECTED]> wrote: > >If I call the methods in the C++ modules from the Python main thread, I >don't have any problem. However, they are usually called from another >Python thread (using the threading module) to keep the GUI

Mixing Python and C threads

2007-07-06 Thread Stéphane Larouche
I am currently developing a software called OpenFilters (available at www.polymtl.ca/larfis). Most of the software is written in Python, but the classes that do the hard work are written in C++ modules. Since, nowadays, most new computers have multiple cores and that I want to speed up the software