Mixing Python and C threads

Stéphane Larouche stephane.larouche at polymtl.ca
Mon Aug 13 17:36:20 CEST 2007

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?
> >> 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.  You might want to check for
> >> bug reports.
> >
> >Here's the simplest piece of code I could think of to reproduce the problem:
> Good work.  This is about as far as my expertise can take you; if nobody
> responds, you might try the new C/API mailing list (capi-sig).

If anybody followed this thread, you'll be pleased to know that the mingw gcc
4.2.1 "technology preview" release available from the official mingw website and
Python threads interact perfectly well together. You also have to pass the
-mthread option to the linker.



More information about the Python-list mailing list