[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Concurrency
From: |
Tom Tromey |
Subject: |
Re: Concurrency |
Date: |
Sun, 28 Mar 2010 15:17:49 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Stefan> Could someone complete the above with a description of how
Stefan> let-bindings work (and/or how they interact with buffer-local
Stefan> bindings)?
A let binding is always thread-local. This is true whether the variable
is buffer-local or not.
The view within a single thread is basically the same as how elisp works
today.
The interaction of let-bindings and buffer-local bindings is
complicated, but I think really no different from before. At least,
that was our goal, of course there could be bugs.
Stefan> Also, a list of bugs/problem/issues would be handy,
* Documentation; NEWS, as you said, but also the lisp reference manual.
* The current code makes no attempt to portable, it relies on POSIX
threads and the GNU __thread extension. This is not too hard to fix.
I think it is reasonably important to keep __thread on systems that
support it, for performance.
* Suppose you have existing elisp that creates a process with a filter,
and the filter changes a let-bound variable, and the "outer" elisp
blocks in sit-for waiting for the filter to do its thing. Nothing in
the current code guarantees that the process filter will be run in the
"correct" thread.
* There may be oddities with redisplay running in the "wrong" thread.
* Keyboard-local variables and let-bindings may not work together as
expected.
I'm sure there are more, this is all I remember offhand.
Stefan> PS: And place this info in a file in the `concurrent' branch.
I hope someone else can do that.
Tom
- Re: Concurrency, (continued)
- Re: Concurrency, Giuseppe Scrivano, 2010/03/29
- Re: Concurrency, Stefan Monnier, 2010/03/29
- Re: Concurrency, Tom Tromey, 2010/03/28
- Re: Concurrency, Daniel Colascione, 2010/03/28
- Re: Concurrency, Stefan Monnier, 2010/03/28
- Re: Concurrency, Tom Tromey, 2010/03/28
- Re: Concurrency,
Tom Tromey <=
- Re: Concurrency, Ken Raeburn, 2010/03/29
- Re: Concurrency, Tom Tromey, 2010/03/29
- Re: Concurrency, Stefan Monnier, 2010/03/29
- gsoc for concurrent Emacs? (was: Concurrency), Ted Zlatanov, 2010/03/31
- Re: Concurrency, Giuseppe Scrivano, 2010/03/28
- Re: Concurrency, Daniel Colascione, 2010/03/28
- Re: Concurrency, Tom Tromey, 2010/03/28