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.

Charles

Attachment: boost_python.patch
Description: Binary data

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

Reply via email to