From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Debugging Emacs with threads Date: Sun, 11 Dec 2016 19:04:20 +0100 Message-ID: <87h96ajqaj.fsf@linux-m68k.org> References: <83inqqe8kb.fsf@gnu.org> <87pokyju0j.fsf@linux-m68k.org> <83eg1ee59i.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1481479525 26841 195.159.176.226 (11 Dec 2016 18:05:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Dec 2016 18:05:25 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.90 (gnu/linux) Cc: tom@tromey.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 11 19:05:15 2016 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 1cG8Uq-0004uL-QW for ged-emacs-devel@m.gmane.org; Sun, 11 Dec 2016 19:05:12 +0100 Original-Received: from localhost ([::1]:56603 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cG8Uu-0001Ht-UC for ged-emacs-devel@m.gmane.org; Sun, 11 Dec 2016 13:05:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cG8UC-0001Hc-Cw for emacs-devel@gnu.org; Sun, 11 Dec 2016 13:04:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cG8U9-0003PW-Oc for emacs-devel@gnu.org; Sun, 11 Dec 2016 13:04:30 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.10]:54354) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cG8U3-0003Le-Q1; Sun, 11 Dec 2016 13:04:23 -0500 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3tcDPf0wqhz3hhwX; Sun, 11 Dec 2016 19:04:22 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3tcDPf03L7zvkFl; Sun, 11 Dec 2016 19:04:21 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id VL64dZMEREeq; Sun, 11 Dec 2016 19:04:21 +0100 (CET) X-Auth-Info: jaSYT35LWAanO+zIsF5RLhR0Z+kEWe98n5J3sRVAUnR42hytfI1jN3HywUqPp3a8 Original-Received: from igel.home (ppp-88-217-26-235.dynamic.mnet-online.de [88.217.26.235]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sun, 11 Dec 2016 19:04:21 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id 863DF2C4C75; Sun, 11 Dec 2016 19:04:20 +0100 (CET) X-Yow: Yow! I just went below the poverty line! In-Reply-To: <83eg1ee59i.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 11 Dec 2016 19:37:29 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 212.18.0.10 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:210293 Archived-At: On Dez 11 2016, Eli Zaretskii wrote: >> From: Andreas Schwab >> Cc: Tom Tromey , emacs-devel@gnu.org >> Date: Sun, 11 Dec 2016 17:43:56 +0100 >> >> Why isn't current_thread a thread-local variable? > > I don't know. Is that sufficiently portable for us to use? If __thread isn't available it can simulated with pthread_getspecific. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."