recursive acquire of GIL
Paul
pcaffrey at iel.ie
Thu Apr 1 10:04:13 EST 2004
Hi
I have seen this discussed already on the newgroup but
have not seen if the problem is solved
Using embedded python in c++ we use
PyEval_RestoreThread(context);
to acquire the GIL.
We then use swig to call back into c++ which again
calls out to python
Essentially we have
c++ -> python -> c++ -> python
The second RestoreThread uses a different python context of course.
However it hangs
PyEval_RestoreThread(context2);
is hanging.
We're using python 2.2.1
Has a solution to this been added to later versions?
Regards
Paul
More information about the Python-list
mailing list