problem with a deadlock when calling gtk_main_iteration
- From: Dave Andruczyk <djandruczyk yahoo com>
- To: gtk-app-devel-list gnome org
- Subject: problem with a deadlock when calling gtk_main_iteration
- Date: Thu, 10 Feb 2005 18:42:04 -0800 (PST)
I have a segment of code that "gets busy" and causes the gui to pause for an
unacceptably long time (loading glade files (many)), so in the loader in
between each glade load I added:
while (gtk_events_pending())
gtk_main_iteration();
Which greatly improved the GUI response.
the problem is after the function that has this little tidbit in it returns,
the GUI locks up solid (no CPU use, like a deadlock)
The function in which this runs, gets called from a GTK+ timeout. the timeout
was initiated from the the main context...
Why does this cause a deadlock some time after the function that ran it ends?
=====
Dave J. Andruczyk
__________________________________
Do you Yahoo!?
All your favorites on one personal page ? Try My Yahoo!
http://my.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]