Re: main loop & main context difference (follow up plz ?)



Hi,

There are docs in the reference manual you know. ;-)
http://developer.gnome.org/doc/API/2.0/glib/glib-The-Main-Event-Loop.html

Scroll down and read the part labeled "Description"

As I understand it:

 GMainContext is a collection of GSource that have been added
 GMainLoop is a sort of "thing you can run and quit", 
  you can have any number of these per context
 
The functions with no context arg, such as g_timeout_add(), 
add the source to the default context.

Havoc



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