Hans Meine wrote:
> Hi!
>
> On Wednesday 19 April 2006 17:47, Dirk Meyer wrote:
>> > No need for this.  The default largest select sleep time in nf_generic
>> > anyway is 100ms.  That's plenty for an idle loop.  And that not doing
>> > this would solve the 100% cpu issue.
>>
>> Not for gtk. If you add something to idle in gtk and don't remove it,
>> you will always use 100% CPU time.
>
> It's not an "issue to be solved", it's a features AFAIK.  I use that a lot 
> (with Qt actually) as a poor man's (and hassle-free!) threading technique, to 
> do calculations in the background.

Yes, we know. It is a nice feature I'm also thinking in adding to the
generic notifier. Right now I use small timer (0 or 10 ms) to do
things like this, but a real idle timer, maybe connected to the real
CPU idle time would be nice to have.


Dischi

-- 
I'm going to live forever, or die trying!
                -- Spider Robinson

Attachment: pgpzCVuiZTaAf.pgp
Description: PGP signature

Reply via email to