emacs-devel
[Top][All Lists]
Advanced

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

Re: multi-threaded Emacs


From: Giuseppe Scrivano
Subject: Re: multi-threaded Emacs
Date: Sun, 07 Dec 2008 17:15:38 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Hi,

I uploaded here a patch with the current status of my work:

http://it.gnu.org/~gscrivano/files/concurrent_threads_7_12.diff.gz

The patch adds these Elisp primitives:

(make-thread)
(run-in-thread)
(kill-thread)
(yield)

Now the garbage collector can be executed by any thread, local bindings
are done as you suggested, the symbol value is changed when Emacs
switches to another thread.
Every thread has its own current_buffer so they can work independently
on different buffers.

New code is not very clean yet, differently from the first patch I
submitted, now all thread local storage data is in a `thread_data'
struct and (make-thread) returns an object.

Any comment?  (Good impressions are welcome).

Giuseppe




reply via email to

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