Preemption in python
munncha at gmail.com
Mon Sep 24 03:51:46 CEST 2007
Thanks a ton!
Just for the eventual webcrawler that logs this, the gtk package requires a
separate thread init function to allow python threads to play nice.
On 9/23/07, Gabriel Genellina <gagsl-py2 at yahoo.com.ar> wrote:
> En Sun, 23 Sep 2007 16:10:03 -0300, Kurtis Heimerl <munncha at gmail.com>
> > I'll explain a bit more. This thread is spawned, I also have the main
> > thread
> > running a gtk windowed gui. The gui has it's own threads to deal with
> > button
> > presses and such. The problem is that the gui never seems to let anyone
> > else
> > run. Only on button presses that cause blocking calls (
> > ossaudiodev.audio.read for instance) does the reader thread print
> > anything.
> Google for "python gtk threading tutorial"
> Gabriel Genellina
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list