On 6/10/2010 5:15 PM, Kristján Valur Jónsson wrote:
This is what your worker thread code must look like:thread(){ PyGILState_STATE mState; mState = PyGILState_Ensure(); /* now you have created a new thread state if not already done, and are ship-shape */ Py_BEGIN_ALLOW_THREADS
Yahtzee! That was the missing piece. Thanks for the crash-course on thread safety in a python-aware app, somehow in my research I missed that. Works flawlessly thanks.
_______________________________________________ Stackless mailing list [email protected] http://www.stackless.com/mailman/listinfo/stackless
