emacs-devel
[Top][All Lists]
Advanced

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

Re: Timers and sentinels


From: Lars Magne Ingebrigtsen
Subject: Re: Timers and sentinels
Date: Sun, 26 Sep 2010 13:56:20 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Uday S Reddy <address@hidden> writes:

> Whenever the "main" Emacs thread does an accept-process-output or
> sit-for, timer tasks can run.  I was also bitten by this issue a few
> times.  It is important that the timer tasks be short and refrain from
> changing any important state that might affect the main thread.

Hm.  Yes, nothing will be preempted unless they call sit-for or
accept-process-output or the like in the main thread, so it sounds
unlikely that a timer task will be preempted unless the same occurs.
Which it doesn't, so there must be a different kind of bug in the
code... 

-- 
(domestic pets only, the antidote for overdose, milk.)
  address@hidden * Lars Magne Ingebrigtsen




reply via email to

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