From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: advice needed for multi-threading patch Date: Mon, 28 Sep 2009 21:33:11 -0600 Message-ID: References: Reply-To: Tom Tromey NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254195217 32113 80.91.229.12 (29 Sep 2009 03:33:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Sep 2009 03:33:37 +0000 (UTC) Cc: Stefan Monnier , Emacs development discussions To: Ken Raeburn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 29 05:33:30 2009 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.50) id 1MsTSy-0001bX-8X for ged-emacs-devel@m.gmane.org; Tue, 29 Sep 2009 05:33:28 +0200 Original-Received: from localhost ([127.0.0.1]:44115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsTSx-0004BV-64 for ged-emacs-devel@m.gmane.org; Mon, 28 Sep 2009 23:33:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsTSq-0004Ac-Vs for emacs-devel@gnu.org; Mon, 28 Sep 2009 23:33:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsTSl-00047r-Ue for emacs-devel@gnu.org; Mon, 28 Sep 2009 23:33:20 -0400 Original-Received: from [199.232.76.173] (port=39379 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsTSl-00047j-Ql for emacs-devel@gnu.org; Mon, 28 Sep 2009 23:33:15 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:34134) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsTSl-000091-97 for emacs-devel@gnu.org; Mon, 28 Sep 2009 23:33:15 -0400 Original-Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8T3XEWL019885; Mon, 28 Sep 2009 23:33:14 -0400 Original-Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8T3XDjU001126; Mon, 28 Sep 2009 23:33:13 -0400 Original-Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n8T3XCuF020226; Mon, 28 Sep 2009 23:33:12 -0400 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id B41E237818C; Mon, 28 Sep 2009 21:33:11 -0600 (MDT) X-Attribution: Tom In-Reply-To: (Ken Raeburn's message of "Mon, 28 Sep 2009 22:26:56 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:115770 Archived-At: >>>>> "Ken" == Ken Raeburn writes: Ken> I suspect that any sensible approach we come up with is going to Ken> involve a change in behavior that may affect some existing code. So Ken> coming up with ways to detect code that changes meaning is probably Ken> going to be a good idea. It is worth noting that we don't have to solve all the problems up front. Since threading is a new feature, I think it is ok to say that code running in a "secondary" thread might have to follow some special rules, or that some things (e.g., let-binding something then redisplay) may only work in the "main" thread. These restrictions could then maybe be lifted later. Ken> We might want to, by default, bind the filters to run only in the Ken> thread that originally created the process, so long as it exists. We can also add a new process attribute controlling this. Tom