Mixing Python and C threads

Aahz aahz at pythoncraft.com
Fri Jul 6 10:38:26 EDT 2007


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 usually called from another
>Python thread (using the threading module) to keep the GUI responsive
>and, then, Python crashes.

The question is whether your C++ code is designed to be called from
multiple threads.  That is, if you call your C++ code from a *single*
non-main thread, does it work?
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

I support the RKAB



More information about the Python-list mailing list