emacs-devel
[Top][All Lists]
Advanced

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

Re: Asynchronous insertion / saving of buffers


From: Michael Albinus
Subject: Re: Asynchronous insertion / saving of buffers
Date: Sat, 21 Apr 2012 10:57:04 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> With threads you could "just" do something like
>
>  (run-thread (lambda ()
>                (insert-file-contents ...)
>                ...))
>
> so there'd be no need to provide new asynchronous versions of things
> like insert-file-contents.

But you still need a mean to inform the caller, that the parallel action
has been finished. And you need a mean to lock the buffer, while
insert-file-contents modifies it.

I haven't read the doc in the concurrency branch, maybe this would
answer my questions.

>         Stefan

Best regards, Michael.



reply via email to

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