main loop & main context difference (i need heeeeeellp!)



Hi all, 


perhaps I'm dumb, but I dont care anymore. :-)
But I really dont get it: 

        what is the difference between main loops & main contexts????

I mean, a loop runs in a context, okay, but sources are attached to ...
what? the context? and the main context loops??? and when I set a new
loop with g_main_loop_new(g_main_context_new(), FALSE), do the sources
grab this when I attach them?

why can I run different main loops (->threads?) in one context (really?
can I?) but not one context in different threads? 


can anyone help out, please ... I already found some article about
changes from glib-1.2 to glib-2.0, but (did I mentioned I feel quite
stupid right now? :-) I think there are some important connections
missing (means: I dont get it :-))


thanks in advance and greetings, 

                axel.



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