Re: problem to write a THREAD enabled python extension

2009-08-25 Thread Andreas Otto
Stefan Behnel wrote: > > You forgot to create a thread state for the new thread. See the > PyThreadState_New() function. > this does not really solve the problem even if the original error does no happen anymore ... but a bucket of other error happen >>> sometimes <<< and this mean that time

Re: problem to write a THREAD enabled python extension

2009-08-24 Thread Stefan Behnel
Andreas Otto wrote: > Hi, > > the following scenario: > > 1. using GIL > 2. a pthread is created in a library and have to be "announced" to python > 3. the thread is created in a "PyObject_CallObject" function call from > extension c code using a other extension c-code function call

problem to write a THREAD enabled python extension

2009-08-24 Thread Andreas Otto
Hi, the following scenario: 1. using GIL 2. a pthread is created in a library and have to be "announced" to python 3. the thread is created in a "PyObject_CallObject" function call from extension c code using a other extension c-code function called from python code python