[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Multiple threads and gtk_main()



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]