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: Eli Zaretskii
Subject: Re: [External] : Re: Would you say this information window is well designed?
Date: Tue, 23 Feb 2021 19:40:04 +0200

> Date: Tue, 23 Feb 2021 17:32:09 +0000
> From: Peter Dean <laszlomail@protonmail.com>
> Cc: "drew.adams@oracle.com" <drew.adams@oracle.com>, "stefankangas@gmail.com" 
> <stefankangas@gmail.com>, "larsi@gnus.org" <larsi@gnus.org>, 
> "dgutov@yandex.ru" <dgutov@yandex.ru>, "emacs-devel@gnu.org" 
> <emacs-devel@gnu.org>
> 
> Thanks. I thought if a thread calls thread-yield very often (e.g.
> in ever iteration of a loop) then it lets the UI process pending
> events every time it yields.
> 
> But if I understand you correctly, even if the thread calls
> thread-yield explicitly, it is not a guaranteed that the UI
> processes events and stay responsive.

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.

> If this the case then I wonder what the possible uses for threads
> are.

Welcome to the club.



reply via email to

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