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 ha
On 2010-07-02 18:27:39-0500, Charles Solar wrote:
> Threads and python do not mix very well. You need to handle locking and
> unlocking the gil at the boundaries of python and c++.
> There are several posts here about this problem, just search for thread or
> 'no current thread' in the archives.
>
essage
from the SWIG mailing list.
- Forwarded message from Nitro -
Am 01.07.2010, 22:35 Uhr, schrieb Anton Yabchinskiy :
> Greetings, SWIG users.
>
> Is it any way one could pass some data from the spawned thread in C++
> code to the Python class' method? My interf