[Top][All Lists]

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

Re: Creating a separate GUI thread for NS

From: Eli Zaretskii
Subject: Re: Creating a separate GUI thread for NS
Date: Sat, 27 Jan 2018 13:33:19 +0200

> Date: Sat, 27 Jan 2018 11:14:57 +0000
> From: Alan Third <address@hidden>
> 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 via email to

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