[Top][All Lists]

[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: Fri, 20 Apr 2012 15:41:36 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> Obviously, we need some design how to handle asynchronous file
>> operations. Any proposals?
> I think it requires fairly major changes: you can't just make
> insert-file-contents asynchronous because its behavior is defined (and
> assumed by callers) to be synchronous.
> I.e. you need a new way to "insert asynchronously".  It can be via a new
> function `insert-file-asynchronously' or via a new argument (or special
> arg value) of insert-file-contents, so that insert-file-contents knows
> that the caller expects an async behavior.
> And then all the callers that want to support async operations need to
> be rewritten (and some of their callers as well).

All of this agreed. That's why I've started with my question.

> Maybe working on the concurrency branch would be easier and more useful.

Yes, this might help. But you still need a kind of infrastructure as you
have pointed out above. Would those new APIs differ, when the
implementation is based on threads, instead of of what I'm doing now?

>         Stefan

Best regards, Michael.

reply via email to

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