[C++-sig] X-language polymorphism and multithreading
arn at bestmx.ru
Tue Jul 6 21:30:25 CEST 2010
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.
More information about the Cplusplus-sig