emacs-devel
[Top][All Lists]
Advanced

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

Re: Threads in emacs implementation


From: Miles Bader
Subject: Re: Threads in emacs implementation
Date: Fri, 17 Jun 2005 09:56:31 +0900

On 6/17/05, Ted Zlatanov <address@hidden> wrote:
> > This is not really true for typical elisp programs -- global variables
> > (especially buffer-local global variables) are used extremely often,
> > and in almost every case must be "truly global" (visible in all
> > threads).
> 
> At the time of the fork, the thread will pick up all globals.  I was
> talking about important globals that are modified after the fork.  At
> least my experience has been that after you initialize Emacs, it's
> rare to modify globally important variables unless you are
> specifically customizing Emacs.

No, it's _extremely_ common.

A huge amount of the actively maintained state in Emacs is stored in
global variables (often buffer-local of course, but still "global" as
far as threads are concerned).

-Miles
-- 
Do not taunt Happy Fun Ball.




reply via email to

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