Re: handlers for g_timeout_add and g_idle_add different threads?



      Quick question:  I've read through all the stuff I can find on the glib
main loop support for timeout handlers and idle handlers, but there's a
simple question I have:

- Do either, or both. of these types of handlers get run in a different
thread, or are they run out of the mainloop/GMainContext the
g_timeout_add and g_idle_add routines were called in to add them?

I think that it is run in mainloop. but if you are not sure, write a
simple gtk program with a button (glade will support you in that) add a
timeout or idle and lock your program with
while (1)
{
}
or something after the button is clicked.

regards
hs



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