Preemption in python

Kurtis Heimerl munncha at gmail.com
Sun Sep 23 21:51:46 EDT 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>
> escribi�:
>
> > 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
>
> --
> http://mail.python.org/mailman/listinfo/python-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070923/06170403/attachment.html>


More information about the Python-list mailing list