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: Thu, 24 Sep 2009 14:04:22 -0600 Message-ID: References: <87zl8lwlgl.fsf@master.homenet> <87ocp0w4vx.fsf@master.homenet> 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 1253822689 12176 80.91.229.12 (24 Sep 2009 20:04:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Sep 2009 20:04:49 +0000 (UTC) Cc: Stefan Monnier , Emacs development discussions To: Giuseppe Scrivano Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 24 22:04:42 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 1MquYT-0006uA-6k for ged-emacs-devel@m.gmane.org; Thu, 24 Sep 2009 22:04:41 +0200 Original-Received: from localhost ([127.0.0.1]:38688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MquYS-0006qO-8v for ged-emacs-devel@m.gmane.org; Thu, 24 Sep 2009 16:04:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MquYM-0006ml-Eq for emacs-devel@gnu.org; Thu, 24 Sep 2009 16:04:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MquYI-0006gh-Uy for emacs-devel@gnu.org; Thu, 24 Sep 2009 16:04:34 -0400 Original-Received: from [199.232.76.173] (port=33020 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MquYI-0006gU-Qq for emacs-devel@gnu.org; Thu, 24 Sep 2009 16:04:30 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:25424) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MquYE-0001d8-Gh; Thu, 24 Sep 2009 16:04:26 -0400 Original-Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8OK4PAt021695; Thu, 24 Sep 2009 16:04:25 -0400 Original-Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8OK4O1L021124; Thu, 24 Sep 2009 16:04:24 -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 n8OK4N8l006104; Thu, 24 Sep 2009 16:04:23 -0400 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id 0B048378185; Thu, 24 Sep 2009 14:04:22 -0600 (MDT) X-Attribution: Tom In-Reply-To: <87ocp0w4vx.fsf@master.homenet> (Giuseppe Scrivano's message of "Thu, 24 Sep 2009 20:53:54 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 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:115590 Archived-At: >>>>> "Giuseppe" == Giuseppe Scrivano writes: >> That's wonderful. Does that mean that Gnus really runs in its own >> thread while you can do normal editing in other buffers? Giuseppe> Yes, it does (except some errors). I am concentrating all my Giuseppe> efforts on gnus, I think that if threads work well for gnus Giuseppe> they will work quite well with any other package. This is awesome. Giuseppe> At the moment it takes a lot to load folder, because there are Giuseppe> not enough yield on the other thread and probably gnus switch Giuseppe> buffers too often (causing a yield). I think we need to yield when a thread is waiting for I/O. And, we probably need a way to associate a process filter with a thread, so that whatever input Gnus gets is processed in the right thread. Tom