From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: master 54b9213: Handle thread-signal towards the main thread (Bug#32502) Date: Sat, 08 Sep 2018 08:48:59 -0700 Message-ID: <87muss9ehg.fsf@ericabrahamsen.net> References: <20180830192912.24309.93190@vcs0.savannah.gnu.org> <20180830192914.85ECE20497@vcs0.savannah.gnu.org> <87bm9j812d.fsf@gmx.de> <83va7iwvqx.fsf@gnu.org> <83pnxqwkv1.fsf@gnu.org> <83y3cdvp2a.fsf@gnu.org> <87sh2lcmds.fsf@ericabrahamsen.net> <87y3cd112s.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1536421701 30685 195.159.176.226 (8 Sep 2018 15:48:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 8 Sep 2018 15:48:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 08 17:48:17 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fyfT7-0007sl-8s for ged-emacs-devel@m.gmane.org; Sat, 08 Sep 2018 17:48:17 +0200 Original-Received: from localhost ([::1]:43392 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyfVD-0000k2-9G for ged-emacs-devel@m.gmane.org; Sat, 08 Sep 2018 11:50:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyfUI-0000CE-Cz for emacs-devel@gnu.org; Sat, 08 Sep 2018 11:49:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fyfU0-0001z3-Re for emacs-devel@gnu.org; Sat, 08 Sep 2018 11:49:15 -0400 Original-Received: from [195.159.176.226] (port=34142 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fyfU0-0001uy-La for emacs-devel@gnu.org; Sat, 08 Sep 2018 11:49:12 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fyfRq-0006T1-9e for emacs-devel@gnu.org; Sat, 08 Sep 2018 17:46:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:bAoxWqDf54eNl0Eeb8VjOpLAFeQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:229492 Archived-At: Michael Albinus writes: > Eric Abrahamsen writes: > >> So once we have a canonical check for thread >> support, it wouldn't be hard to accommodate both situations. > > For the time being, I use in the feature/tramp-thread-safe branch: > > ;; Threads have entered Emacs 26.1, `main-thread' in Emacs 27.1. But > ;; then, they might not exist when Emacs is configured > ;; --without-threads. > (defconst tramp-compat-main-thread (bound-and-true-p main-thread) > "The main thread of Emacs, if compiled --with-threads.") > > It is nil when there is no (sufficient) thread support. Looks reasonable -- thanks! Eric