Boost C++ Libraries: Ticket #7836: Add GIL RAII module to Boost.Python https://svn.boost.org/trac10/ticket/7836 <p> This ticket follows a recent discussion I started on the Python C++ SIG mailing list (which in turn followed a brief topic on the Boost developers list). </p> <p> I would like to submit for inclusion in Boost.Python a pair of classes for releasing and acquiring the Python Global Interpreter Lock (GIL) using RAII semantics. </p> <p> Please see three files attached to this ticket: gil.hpp, gil.cpp, and gil_test.cpp, which implement and (lightly) test this new feature. They are modified from versions I maintain on <a class="missing wiki">GitHub</a> in order to make them more compatible with existing code style in Boost.Python. </p> <p> This code (with different naming conventions but the same logic) has been used successfully by me "in production" and the releaser class is inspired by several examples online that others have until now copy-pasted when needed. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7836 Trac 1.4.3 John Zwinck <jzwinck@…> Sat, 29 Dec 2012 16:53:04 GMT attachment set https://svn.boost.org/trac10/ticket/7836 https://svn.boost.org/trac10/ticket/7836 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">gil.hpp</span> </li> </ul> <p> Header file proposed for &lt;boost/python/gil.hpp&gt; </p> Ticket John Zwinck <jzwinck@…> Sat, 29 Dec 2012 16:53:35 GMT attachment set https://svn.boost.org/trac10/ticket/7836 https://svn.boost.org/trac10/ticket/7836 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">gil.cpp</span> </li> </ul> <p> Implementation for &lt;boost/python/gil.hpp&gt; </p> Ticket John Zwinck <jzwinck@…> Sat, 29 Dec 2012 16:53:56 GMT attachment set https://svn.boost.org/trac10/ticket/7836 https://svn.boost.org/trac10/ticket/7836 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">gil_test.cpp</span> </li> </ul> <p> Test for &lt;boost/python/gil.hpp&gt; </p> Ticket