On 07/16/2010 11:38 AM, Charles Solar wrote:
I mentioned it before but I have this patch for boost python that adds
code to lock and unlock the gil at all the boundaries I have found
between python and boost python.  This makes it so multiple threads
can call into python without the user having to lock and unlock the
gil themselves.  I am pretty sure this is a very much desired feature
but I guess the developers are waiting for a head start, so here is
the patch file that can be applied to the boost trunk or any of the
1.4x versions of boost python.  I would very much like to see the
patch correctly worked into boost python so I no longer have to
maintain it myself.
I have been using this in my application for a few months now and I am
fairly confident in its completeness when NOT embedding python
interpreters.  There may be more entry points I have missed because I
do not embed python in my app, therefore I would say this patch is
only non-embedded systems.


I think there have already been (at least two?) other submitted patches to add multithreading support to Boost.Python. I believe one of them has been languishing in the Boost ticket system for quite a long time, and I've gathered that some people have put together their own forks of Boost.Python that have threading support.

But I don't know much more than this, and I'm also curious to hear the story told by someone who has more information...why hasn't multithreading support been added? Does it just add too much overhead for those who don't need it?

(bump)

Jim Bosch
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to