all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Is automatic yield support feasible for threads?
Date: Wed, 10 Nov 2021 15:46:02 +0200	[thread overview]
Message-ID: <8335o43yzp.fsf@gnu.org> (raw)
In-Reply-To: <WrnCK-thR61PqmwodwrIjmAUnia9XIncEzC5DLlwlcDmu90mAyIfes9wdIyLSrWCc38fPghlYfgvAKV7vBzwqrcSfkiNDyB8KxgIl35n1dw=@protonmail.com> (message from ndame on Wed, 10 Nov 2021 07:46:48 +0000)

> 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	other threads:[~2021-11-10 13:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-04 17:10 Is automatic yield support feasible for threads? ndame via Users list for the GNU Emacs text editor
2021-11-09 14:53 ` Philipp
2021-11-10  7:46   ` ndame
2021-11-10 13:46     ` Eli Zaretskii [this message]
2021-11-11 18:11     ` Philipp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8335o43yzp.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.