Hello, In PyPy's facilities for writing a CPython extension, would it be conceivable to have an option to release the CPython GIL when the extension is entered and grab it back upon exit? That would enable multiprocessing and could be extremely useful when the programmer knows he's not going to modifying shared items during the execution of the extension. Thanks, Gary -- Gary Robinson CTO Emergent Music, LLC grobinson@goombah.com 207-942-3463 Company: http://www.goombah.com Blog: http://www.garyrobinson.net
On Thu, 5 Apr 2007 16:03:25 -0400 Gary Robinson <grobinson@goombah.com> wrote:
Hello,
In PyPy's facilities for writing a CPython extension, would it be conceivable to have an option to release the CPython GIL when the extension is entered and grab it back upon exit?
It's easy enough to call the PyGIL_ functions manually from rpython.. Simon.
Simon Burton wrote:
On Thu, 5 Apr 2007 16:03:25 -0400 Gary Robinson <grobinson@goombah.com> wrote:
Hello,
In PyPy's facilities for writing a CPython extension, would it be conceivable to have an option to release the CPython GIL when the extension is entered and grab it back upon exit?
It's easy enough to call the PyGIL_ functions manually from rpython..
That might well be, but that does not release PyPy's GIL when the module is used together with PyPy. Cheers, Carl Friedrich
participants (3)
-
Carl Friedrich Bolz
-
Gary Robinson
-
Simon Burton