[issue15751] Support subinterpreters in the GIL state API

Graham Dumpleton report at bugs.python.org
Wed Aug 29 12:09:46 CEST 2012


Graham Dumpleton added the comment:

If PyGILState_STATE is a struct, what happens if someone naively does:

PyGILState_Release(PyGILState_UNLOCKED)

I know they shouldn't, but I actually do this in mod_wsgi in one spot as it is otherwise a pain to carry around the state when I know for sure if was unlocked before the PyGILState_Ensure().

Or can PyGILState_UNLOCKED map to some a global struct instance with certain state in it that represents that without problem.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15751>
_______________________________________


More information about the Python-bugs-list mailing list