[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Introducing thread-safe Tramp
From: |
Michael Albinus |
Subject: |
Re: Introducing thread-safe Tramp |
Date: |
Sat, 28 Jul 2018 12:13:05 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Dmitry Gutov <address@hidden> writes:
> No objections from me in principle, but we should probably call
> vc-file-clearprops right away (is there a chance that some other code
> calls vc-state before this thread launches and gets stale status?).
I've scanned the Emacs lisp dir, and there doesn't seem to be any other
call to vc-state. If I'm not mistaken.
> We could also make vc-state use the same mutex, in order for it to
> wait until refresh finished, instead of returning the stale result.
Well, you are much more experienced with vc than I do. Look at the
changes I've done in vc-hooks.el, and adapt.
The only other relevant change I've done is, that I lock the vc-mutex in
find-file-with-threads of files.el. This reorders the threads, all
vc-refresh-state calls are performed after all files (from a wildcard)
are loaded into their respective buffers. This improves early visibility
of the visited files.
Best regards, Michael.
- Re: Introducing thread-safe Tramp, (continued)
- Re: Introducing thread-safe Tramp, Dmitry Gutov, 2018/07/27
- Re: Introducing thread-safe Tramp, Dmitry Gutov, 2018/07/27
- Re: Introducing thread-safe Tramp, Michael Albinus, 2018/07/28
- Re: Introducing thread-safe Tramp, Dmitry Gutov, 2018/07/28
- Re: Introducing thread-safe Tramp, Michael Albinus, 2018/07/28
Re: Introducing thread-safe Tramp, Dmitry Gutov, 2018/07/28
- Re: Introducing thread-safe Tramp,
Michael Albinus <=