help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Is automatic yield support feasible for threads?


From: Eli Zaretskii
Subject: Re: Is automatic yield support feasible for threads?
Date: Wed, 10 Nov 2021 15:46:02 +0200

> Date: Wed, 10 Nov 2021 07:46:48 +0000
> From: ndame <laszlomail@protonmail.com>
> Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
> 
> But you are right if someone uses a thread for UI changes then there can be 
> problems. My idea is about an _optional_ automatic yielding for threads, so 
> it still could be useful for those threads which are self contained. Those 
> could choose to start with periodic automatic yielding, so their code do not 
> have to be sprinkled with manual yield calls, impacting code readability.

How can a thread be made to yield at some arbitrary point of its code
without risking problems?  E.g., a thread could be in the middle of
some operation that must be done atomically.



reply via email to

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