Re: Multiple threads and gtk_main()
- From: Gabriele Greco <gabriele greco darts it>
- To: gtk-app-devel-list gnome org
- Subject: Re: Multiple threads and gtk_main()
- Date: Wed, 11 Jul 2007 09:33:36 +0200
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]