Re: PyGILState API and Py_Main

2015-01-07 Thread dieter
Adrien Bruneton writes: > I am having a hard time understanding what is the proper use of > PyGILState_Ensure/Release. > My understanding is that one should always be matched with the other, > and that this high level API auto-magically deals with the ThreadState > creation. > > However the follo

PyGILState API and Py_Main

2014-12-18 Thread Adrien Bruneton
Hello all, I am having a hard time understanding what is the proper use of PyGILState_Ensure/Release. My understanding is that one should always be matched with the other, and that this high level API auto-magically deals with the ThreadState creation. However the following piece of code (ex