[C++-sig] Does Boost.Python consider this as "unsupported" (threading related)

Charles Solar charlessolar at gmail.com
Sun Jun 6 21:45:30 CEST 2010


No you can do this, I do the same thing in my project.
However, without appropriate GIL locks your new thread cannot call into
python.  So make sure your new thread of not calling any python callables
and you are fine.

On Sun, Jun 6, 2010 at 2:30 PM, Embhi Karuche <embhi.karuche at gmail.com>wrote:

> Hello
>
> I have read the FAQ ( http://bit.ly/dl8j8o ) about
> multi-threading/multi-interpretor support - but I don't quite
> understand it. Please help me get clarified with it.
> Suppose I have exposed a C++ class's member function using
> Boost.Python. This function internally starts a Boost.Thread. Is this
> kind of usage support by Boost.Python? Note that the Boost.Thread
> itself is not being exposed to Python...
>
> Here is a very simplified layout of the code:
> http://codepad.org/YVlmvJW7
>
> Thank you, and thanks for the great library... Boost.Python is really
> like magic!
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig at python.org
> http://mail.python.org/mailman/listinfo/cplusplus-sig
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20100606/90c3ce3c/attachment.html>


More information about the Cplusplus-sig mailing list