From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giuseppe Scrivano Newsgroups: gmane.emacs.devel Subject: Re: advice needed for multi-threading patch Date: Thu, 24 Sep 2009 20:53:54 +0200 Message-ID: <87ocp0w4vx.fsf@master.homenet> References: <87zl8lwlgl.fsf@master.homenet> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253818607 28949 80.91.229.12 (24 Sep 2009 18:56:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Sep 2009 18:56:47 +0000 (UTC) Cc: Tom Tromey , Emacs development discussions To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 24 20:56:40 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 1MqtUd-000384-GZ for ged-emacs-devel@m.gmane.org; Thu, 24 Sep 2009 20:56:40 +0200 Original-Received: from localhost ([127.0.0.1]:53187 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqtUb-00022Y-W3 for ged-emacs-devel@m.gmane.org; Thu, 24 Sep 2009 14:56:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqtTJ-0001aM-Tt for emacs-devel@gnu.org; Thu, 24 Sep 2009 14:55:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqtTF-0001XO-6R for emacs-devel@gnu.org; Thu, 24 Sep 2009 14:55:17 -0400 Original-Received: from [199.232.76.173] (port=60648 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqtTE-0001XD-U9 for emacs-devel@gnu.org; Thu, 24 Sep 2009 14:55:12 -0400 Original-Received: from joe.mail.tiscali.it ([213.205.33.54]:59521) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqtTD-0007dh-ET; Thu, 24 Sep 2009 14:55:11 -0400 Original-Received: from master.homenet (84.222.168.3) by joe.mail.tiscali.it (8.0.022) id 49EC55CD04675935; Thu, 24 Sep 2009 20:54:56 +0200 Original-Received: from gscrivano by master.homenet with local (Exim 4.69) (envelope-from ) id 1MqtRy-0001l6-GN; Thu, 24 Sep 2009 20:53:54 +0200 In-Reply-To: (Stefan Monnier's message of "Thu, 24 Sep 2009 13:29:31 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:115588 Archived-At: Stefan Monnier writes: >> (run-in-thread '(gnus) t) ;; with t the thread doesn't attempt to get >> ;; a lock on the buffer. >> (while (yield)) ;; yield returns nil when there are not other >> ;; threads -- simulate join. > > That's wonderful. Does that mean that Gnus really runs in its own > thread while you can do normal editing in other buffers? Yes, it does (except some errors). I am concentrating all my efforts on gnus, I think that if threads work well for gnus they will work quite well with any other package. At the moment it takes a lot to load folder, because there are not enough yield on the other thread and probably gnus switch buffers too often (causing a yield). Still there is much to do but some results are already visible. Cheers, Giuseppe