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.karu...@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@python.org
> http://mail.python.org/mailman/listinfo/cplusplus-sig
>
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to