[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Multiple threads and gtk_main()
- From: Chris Vine <chris cvine freeserve co uk>
- To: Eduardo M KALINOWSKI <ekalin laposte net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Multiple threads and gtk_main()
- Date: Tue, 10 Jul 2007 21:09:53 +0100
On Tue, 2007-07-10 at 13:10 -0300, Eduardo M KALINOWSKI wrote:
[snip]
> Make your threads add stuff to a single GAsyncQueue. Let an idle
> function (or a timeout function) always run, that checks the GAsyncQueue
> and does something if there is something to do, or simply returns if it
> is empty. Wouldn't that work?
That would work with a timeout, but not with an idle function. Using
g_idle_add() in this way would create a busy loop.
Chris
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]