Re: How does gmainloop schedule GSources by priority?

2010-08-15 Thread Havoc Pennington
Hi, On Sat, Aug 14, 2010 at 9:57 AM, cee1 fykc...@gmail.com wrote: I've written a test program, which creating watches for two GIOChannels: one for stdin with a low priority, and the other for a named pipe with a high priority. Then ran the program with no data written to the named pipe, it

Re: How does gmainloop schedule GSources by priority?

2010-08-14 Thread cee1
Hi, Havoc 2010/8/12 Havoc Pennington h...@pobox.com Hi, Anyway you are correct, the main loop does not do any fancy scheduling where it allocates time slices. Higher priorities simply always win. Havoc I've written a test program, which creating watches for two GIOChannels: one for stdin

Re: How does gmainloop schedule GSources by priority?

2010-08-12 Thread Havoc Pennington
Hi, On Wed, Aug 11, 2010 at 10:02 PM, cee1 fykc...@gmail.com wrote: So if I have a IOChannel watch source with a high priority, and then attach an idle source, the idle source will have no change to be scheduled? An idle source will never be scheduled while any higher-priority source is ready.