From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: multi-threaded Emacs Date: Fri, 05 Dec 2008 10:40:40 -0500 Message-ID: References: <87abbiody1.fsf@master.homenet> <877i6l5d8s.fsf@master.homenet> <874p1npvtj.fsf@master.homenet> <87ej0qci8g.fsf@master.homenet> <87y6yxm7xr.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 1228491821 10588 80.91.229.12 (5 Dec 2008 15:43:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Dec 2008 15:43:41 +0000 (UTC) Cc: Giuseppe Scrivano , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 05 16:44:44 2008 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 1L8cr0-0000VP-U5 for ged-emacs-devel@m.gmane.org; Fri, 05 Dec 2008 16:44:31 +0100 Original-Received: from localhost ([127.0.0.1]:45407 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8cpq-0003FJ-2k for ged-emacs-devel@m.gmane.org; Fri, 05 Dec 2008 10:43:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L8cnO-0000QL-3j for emacs-devel@gnu.org; Fri, 05 Dec 2008 10:40:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L8cnM-0000Ow-9G for emacs-devel@gnu.org; Fri, 05 Dec 2008 10:40:45 -0500 Original-Received: from [199.232.76.173] (port=47721 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8cnM-0000Os-0Y for emacs-devel@gnu.org; Fri, 05 Dec 2008 10:40:44 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:48543 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L8cnJ-0005I6-JL; Fri, 05 Dec 2008 10:40:41 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvoEAKPaOEnO+Jkl/2dsb2JhbACBbc12gwWBJg X-IronPort-AV: E=Sophos;i="4.33,721,1220241600"; d="scan'208";a="30695708" Original-Received: from 206-248-153-37.dsl.teksavvy.com (HELO pastel.home) ([206.248.153.37]) by ironport2-out.teksavvy.com with ESMTP; 05 Dec 2008 10:40:40 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 7F8D184A9; Fri, 5 Dec 2008 10:40:40 -0500 (EST) In-Reply-To: (Richard M. Stallman's message of "Thu, 04 Dec 2008 21:59:45 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) 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:106613 Archived-At: > Yes, I was referring to the cooperating threads model using a QUIT > macro. How can it be used by gnus while fetching new data? > Does the code that gnus runs to fetch new data involve ever doing the > QUIT macro? Yes, the QUIT macro is executed pretty much all the time. > If it has a loop, then yes. If it reads from a net > connection, then it calls wait_reading_process_output. It does both. > So it should be able to operate in parallel with other things, even > with cooperating threads. Indeed. Stefan