Jason Tackaberry wrote:
> On Wed, 2006-04-19 at 17:00 +0200, Dirk Meyer wrote:
>> It should be easy to add to the generic notifier if we really need
>> this. It could be a simple:
>> 
>> | if len(idle_callbacks):
>> |     select_timeout=0
>
> 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.


Dischi

-- 
PEOPLE'S WHOLE LIVES *DO* PASS IN FRONT OF THEIR EYES BEFORE THEY DIE. THE
PROCESS IS CALLED 'LIVING'.
        -- (Terry Pratchett, The Last Continent)

Attachment: pgptaKSEp4ZHB.pgp
Description: PGP signature

Reply via email to