emacs-devel
[Top][All Lists]
Advanced

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

Re: Should `cancel-timer' use `delete' instead of `delq'?


From: Stefan Monnier
Subject: Re: Should `cancel-timer' use `delete' instead of `delq'?
Date: Tue, 05 Sep 2006 20:59:22 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> Does not sound too hot to me: after all, garbage collection happens
> nondeterministically, and there are valid cases for repetitive timers
> that will never need to be cancelled (a running clock somewhere, or a
> yearly birthday reminder...).  It would surprise the user if his
> timers suddenly stopped without reason when they ran perfectly well
> for a while.

Yes, just like reclamation of open-files shouldn't be done by the GC, this
should only be a debugging aid: it should warn about "lonely timers" rather
than kill them.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]