[C++-sig] boost::python and threads
Thomas Berg
merlin66b at gmail.com
Sat Jul 4 13:19:22 CEST 2009
Hi,
On Fri, Jul 3, 2009 at 1:15 PM, Paul Scruby<paul at gingernut.tv> wrote:
> I am having some problems using boost::python with boost::thread. I'm using
> threads because I want to run some tasks in the background when I'm using
> the Python's interactive shell. However, when I use get_override() to call
> a Python method from another boost::thread it crashes internally. For
> example:
>
>
> Have a missed a trick using the wrapper, or does boost::python not support
> threading?
>
> Many thanks,
>
> Paul
Short answer: boost::python does not support threading. There is more
information here, and a few interesting links (with partial
solutions): http://www.boost.org/doc/libs/1_39_0/libs/python/todo.html#full-threading-support
Hope this helps,
Thomas
More information about the Cplusplus-sig
mailing list