all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Alan Third <alan@idiocy.org>
Cc: emacs-devel@gnu.org
Subject: Re: Creating a separate GUI thread for NS
Date: Sat, 27 Jan 2018 13:33:19 +0200	[thread overview]
Message-ID: <83h8r7k03k.fsf@gnu.org> (raw)
In-Reply-To: <20180127111457.GA66552@breton.holly.idiocy.org> (message from Alan Third on Sat, 27 Jan 2018 11:14:57 +0000)

> Date: Sat, 27 Jan 2018 11:14:57 +0000
> From: Alan Third <alan@idiocy.org>
> 
> The sensible thing to do would be to move the run loop to its own
> thread. I believe we do something similar on Windows.

On MS-Windows, the separate thread runs the GUI input message pump.

> The problem is that Cocoa insists the run loop *must* be run on the
> main thread, and Emacs also insists that *it* runs on the main thread.
> 
> Is there a way to get Emacs to run on a child thread? Is it just a
> case of resetting main_thread_id in sysdep.c?

You should consider which thread gets the signals (or their
equivalents).  Emacs currently assumes its the main thread, and that's
what you see in sysdep.c.  But some other traces of this assumption
are elsewhere, so you should carefully review any code that is related
to signals.

Does the text-mode session on NS use SIGINT for C-g?

(Caveat: I know nothing about NS.)



  reply	other threads:[~2018-01-27 11:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-27 11:14 Creating a separate GUI thread for NS Alan Third
2018-01-27 11:33 ` Eli Zaretskii [this message]
2018-01-28 17:00   ` Philipp Stephani
2018-01-29 17:56     ` Eli Zaretskii

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=83h8r7k03k.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=alan@idiocy.org \
    --cc=emacs-devel@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.