Gtk and threads




No, this is no question if Gtk supports threads. I have a threaded
application which doesn't work as it should. The symptoms are like
this:

My app calls gtk_clist_set_text () but the new text never shows
up on the screen.

I added lots of debug printf()s and finally came up with this result
which I don't understand:

Gtk stops in the select() in gdk.c. When CList draws something, then
the select() *doesn't* come back !! Gtk hangs there infinitely. When
I add a gtk_threads_wake() at the end of draw_row() in gtkclist.c,
then the GUI is ok for the CList but button highlighting doesn't
work.

Surely, this is not what should happen ? Why doesn't select() return
on the X events ?

--
Dipl. Inf. (FH) Aaron "Optimizer" Digulla     Assistent im BIKS Labor, FB WI
"(to) optimize: Make a program faster by      FH Konstanz, Brauneggerstr. 55
improving the algorithms rather than by       Tel:+49-7531-206-514
buying a faster machine."                     EMail: digulla@fh-konstanz.de



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