On 2010-07-03 05:03:53+0400, Anton Yabchinskiy wrote:
> So, I need PyGILState_Ensure/PyGILState_Release around the
> overridden method call, and PyEval_InitThreads in the module
> initialization. Am I right? Is the following code OK?

With the GIL stuff code runs nicely now. It used to hang in the
callback, but that was my fault: I forgot to export one of the types
properly. I've just asked to be sure that I'm getting it
right. Charles, Hans, thanks for the valuable information.
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to