Re: PyGilState_Ensure interrupts python critical sections

2007-11-15 Thread Chris Mellon
On Nov 15, 2007 4:50 AM, <[EMAIL PROTECTED]> wrote: > Many thanks for the clarification. Also good idea to focus on lock > ownership rather that thread activity in your diagram. > > To be honest I was not actually experiencing deadlock issues. I had > just deduced (incorrectly) that I might do so

Re: PyGilState_Ensure interrupts python critical sections

2007-11-15 Thread billy . omahony
Many thanks for the clarification. Also good idea to focus on lock ownership rather that thread activity in your diagram. To be honest I was not actually experiencing deadlock issues. I had just deduced (incorrectly) that I might do so if I started using locks in my py code called from c-land. As

Re: PyGilState_Ensure interrupts python critical sections

2007-11-12 Thread Chris Mellon
On Nov 12, 2007 6:56 AM, <[EMAIL PROTECTED]> wrote: > Hi, > > I have a native windows thread in a c python module which calls into > python code and adds an item to a data structure (a home-grown > circular buffer). At the same time my main python application is > removing items from this data str

PyGilState_Ensure interrupts python critical sections

2007-11-12 Thread billy . omahony
Hi, I have a native windows thread in a c python module which calls into python code and adds an item to a data structure (a home-grown circular buffer). At the same time my main python application is removing items from this data structure. Unlike native python containers adding and removing ite