Ronald Oussoren <ronaldousso...@mac.com> added the comment:

What's the value of PyGILState_Check() before the call to PyGILState_Ensure()? 

PyGILState_Ensure() and PyGILState_Release() should bracket code where you're 
not sure about the current GIL state, but need the GIL.  The Release function 
only undoes the action of the Ensure function, and won't release the GIL if the 
GIL was held before the call to the Ensure function.

----------
nosy: +ronaldoussoren

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38680>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to