Re: zombie GTK thread



kornelix wrote:
[...]
The dialog box is left running after the thread exits, and it works OK.
The thread that created it is long gone but the dialog response functions still work.
What thread are they running in?

Gdk has a connection with the X server and adds the
file desctiptor to the poll() in the main loop.

When events are delivered to GTK+, poll() returns (deep inside
gtk_main()) and the event is sent to the appropriate widget.

All events are delivered in the main thread.

Cheers,
                          -Tristan

Note: threads are only threads of execution; callbacks and data
do not belong to a thread.



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