Threads in embedded interpreter doesn't run

devrim.erdem at gmail.com devrim.erdem at gmail.com
Wed Oct 20 10:21:31 EDT 2004


Jeff Shannon <jeff at ccvcorp.com> wrote in message news:<10nbdfqhgkgra70 at corp.supernews.com>...
> devrim.erdem at gmail.com wrote:
> 
> >Could anyone give me some hints to understand why the thread can not
> >execute during my application loop.
> >  
> >
> 
> This is a complete shot in the dark, but is there any chance that your 
> rendering loop is holding on to the Python GIL?  Doing so would prevent 
> any (other) Python code from running for as long as the lock is held.

Thanks Jeff.

I haven't so far explicitly done anything with Python GIL in my
application. Is there a function which could tell me if the Python GIL
is held or not ?



More information about the Python-list mailing list