emacs-devel
[Top][All Lists]
Advanced

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

Re: [External] : Re: Would you say this information window is well desig


From: Peter Dean
Subject: Re: [External] : Re: Would you say this information window is well designed?
Date: Tue, 23 Feb 2021 17:59:08 +0000

On Tuesday, February 23, 2021 6:40 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>
> Yes, because there's no guarantee that the thread running the UI
> (usually the main thread) is the one that will take the lock released
> by thread-yield.

Then there could be a refresh rate value (e.g. 15 ms or some other value,
configurable) and thread-yield could check if the main thread got the lock
within this time window.

If not then it would give the lock explicitly to the main thread, otherwise
the next thread gets the lock.

This could guarantee UI responsivity which is the first priority and other
threads get the lock only when the UI is fresh enough.




reply via email to

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