From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Patch for fields of `struct buffer' Date: Sat, 29 Jan 2011 11:18:47 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: dough.gmane.org 1296317943 17908 80.91.229.12 (29 Jan 2011 16:19:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 29 Jan 2011 16:19:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 29 17:18:59 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PjDVr-0004ve-BU for ged-emacs-devel@m.gmane.org; Sat, 29 Jan 2011 17:18:59 +0100 Original-Received: from localhost ([127.0.0.1]:55265 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PjDVq-0006fF-Qi for ged-emacs-devel@m.gmane.org; Sat, 29 Jan 2011 11:18:58 -0500 Original-Received: from [140.186.70.92] (port=44108 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PjDVk-0006f2-P8 for emacs-devel@gnu.org; Sat, 29 Jan 2011 11:18:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PjDVj-0005Q8-VD for emacs-devel@gnu.org; Sat, 29 Jan 2011 11:18:52 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:39992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PjDVj-0005Q1-SK for emacs-devel@gnu.org; Sat, 29 Jan 2011 11:18:51 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1PjDVf-0003G8-EL; Sat, 29 Jan 2011 11:18:47 -0500 In-reply-to: (message from Tom Tromey on Thu, 27 Jan 2011 13:18:37 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135217 Archived-At: In order to implement thread-specific let-binding of buffer-local variables, we must introduce an indirection into the C code, so that lookups of these variables see the thread-specific value, if any. This makes thread-switching faster but makes access slower. Moreover, it is a big change. Why not use a mechanism like that of buffer-local variables? It would be much easier and perhaps better. I hope you are not trying to implement truly asynchronous thread switching, because that is going to cause lots of timing errors in C code that isn't ready for this. -- Richard Stallman President, Free Software Foundation 51 Franklin St Boston MA 02110 USA www.fsf.org, www.gnu.org