Threads & independant main loops/contexts



Hi all,

I just dont get it. :-(

Please listen: I have three threads with three main loops (I intend to
use). These main loops I want to be independant, so they can do stuff
without blocking / interfering with each other. It seems not to be
sufficient just to create a new main loop in each of the threads, which
would be the most easy solution I can think of. Now I read a lot about
these GMainContext's, but these I dont really understand a bit :-((

So my problem - cut down to one essential - is the following: I have
one thread which has to be independant of all others (as completely as
possible, speaking of the MainLoop and probably of the MainContext also
...), but it has to insert watches of io channels into the main loop of
a third thread. 

How can I realize this? I think there has to be a way, but I'm quite
blinded at the moment ... 


Thanks for all help and greetings, 

                Axel.



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