Re: Mixing Python and C threads

2007-08-13 Thread Stéphane Larouche
Aahz aahz at pythoncraft.com writes: In article mailman.430.1183825935.22759.python-list at python.org, =?utf-8?b?U3TDqXBoYW5l?= Larouche stephane.larouche at polymtl.ca wrote: Aahz aahz at pythoncraft.com writes: Can you reproduce your problem with stub code that only creates threads?

Re: Mixing Python and C threads

2007-07-07 Thread Aahz
In article [EMAIL PROTECTED], =?utf-8?b?U3TDqXBoYW5l?= Larouche [EMAIL PROTECTED] wrote: Aahz aahz at pythoncraft.com writes: In article mailman.412.1183729810.22759.python-list at python.org, =?utf-8?b?U3TDqXBoYW5l?= Larouche stephane.larouche at polymtl.ca wrote: If I call the methods in

Re: Mixing Python and C threads

2007-07-07 Thread Stéphane Larouche
Aahz aahz at 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.

Re: Mixing Python and C threads

2007-07-07 Thread Aahz
In article [EMAIL PROTECTED], =?utf-8?b?U3TDqXBoYW5l?= Larouche [EMAIL PROTECTED] wrote: Aahz aahz at 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

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

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

Re: Mixing Python and C threads

2007-07-06 Thread Stéphane Larouche
Aahz aahz at pythoncraft.com writes: In article mailman.412.1183729810.22759.python-list at python.org, =?utf-8?b?U3TDqXBoYW5l?= Larouche stephane.larouche at 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