Re: Multiple threads and gtk_main()



Eduardo M KALINOWSKI wrote:
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?
Yes, but that would be polling, and polling is what I'm trying to avoid.

--
Bye,
Gabry




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