Re: handlers for g_timeout_add and g_idle_add different threads?
- From: "Hubert Sokolowski" <h sokolowski wsisiz edu pl>
- To: "Al Hooton" <al hootons org>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: handlers for g_timeout_add and g_idle_add different threads?
- Date: Tue, 7 Dec 2004 08:07:56 +0100 (CET)
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]