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: Concurrency Date: Sun, 28 Mar 2010 23:04:19 +0200 Message-ID: <87k4swrwdo.fsf@gnu.org> References: <27349166.post@talk.nabble.com> <27560255.post@talk.nabble.com> <4B754E74.8060705@swipnet.se> <27563610.post@talk.nabble.com> <4B7564C7.1010309@swipnet.se> <27564728.post@talk.nabble.com> <4B756FB7.3050202@swipnet.se> <87k4ui4gik.fsf@lola.goethe.zz> <27566385.post@talk.nabble.com> <87wryi2sjd.fsf@lola.goethe.zz> <27585994.post@talk.nabble.com> <87k4ucdmwh.fsf@stupidchicken.com> <87d3zweq4e.fsf@master.homenet> <87y6hg1h4a.fsf@thor.thematica.it> <87tys3j9fa.fsf@lifelogs.com> <87eij6tqmu.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269810259 11277 80.91.229.12 (28 Mar 2010 21:04:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 28 Mar 2010 21:04:19 +0000 (UTC) Cc: Ted Zlatanov , emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 28 23:04:15 2010 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 1NvzeY-0001W4-SX for ged-emacs-devel@m.gmane.org; Sun, 28 Mar 2010 23:04:15 +0200 Original-Received: from localhost ([127.0.0.1]:51755 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvzeY-0007OI-7v for ged-emacs-devel@m.gmane.org; Sun, 28 Mar 2010 17:04:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvzeT-0007O3-BD for emacs-devel@gnu.org; Sun, 28 Mar 2010 17:04:09 -0400 Original-Received: from [140.186.70.92] (port=52412 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvzeR-0007Nv-2F for emacs-devel@gnu.org; Sun, 28 Mar 2010 17:04:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvzeQ-0001RE-5q for emacs-devel@gnu.org; Sun, 28 Mar 2010 17:04:06 -0400 Original-Received: from mail-bw0-f219.google.com ([209.85.218.219]:42583) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvzeO-0001R0-Nu; Sun, 28 Mar 2010 17:04:04 -0400 Original-Received: by bwz19 with SMTP id 19so957587bwz.26 for ; Sun, 28 Mar 2010 14:04:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:from:to:cc :subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=GBlviruYzx42I7iw5dUVvydUOgaMdZYodYs3gRXZ56k=; b=qgL9dABJwgIJUGsydqISL8Bdb+l4ERdlDkhKhzqKkx1dGkYaYf3XTyhKyZN5cRv8oE M7dvsxBenkm/yshRyzF6YgQJgB1tzFUv2vMlDcNpvtbE2hUp5lhGM3iPYAkdcPxaGeZU clyhKmFbKXs/0mBLBlhjDvhsKuOHrMNGpnbnY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=Ir3Z3ziCB7qffwRtE5ZDht70jJxp7DWeVbC3Tl+T8tSCZXnww3GKtffI3wuOZKhcRz vl/MtSpSneiZ1/w7vDcj/IKFYjDerSyZspg9caxVPHmYROfpJxzCVTmYSv4gSdk5DKCn jNWvmT3VnTbH3tyoD03mYA+aQwBxYk9Q7HlVk= Original-Received: by 10.204.18.131 with SMTP id w3mr3880305bka.16.1269810243430; Sun, 28 Mar 2010 14:04:03 -0700 (PDT) Original-Received: from black ([188.152.249.60]) by mx.google.com with ESMTPS id 14sm1793893bwz.6.2010.03.28.14.04.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 28 Mar 2010 14:04:02 -0700 (PDT) Original-Received: from localhost ([127.0.0.1] helo=black) by black with esmtp (Exim 4.71) (envelope-from ) id 1Nvzed-00015y-VF; Sun, 28 Mar 2010 23:04:20 +0200 In-Reply-To: (Tom Tromey's message of "Sun, 28 Mar 2010 13:40:59 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.93 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:122822 Archived-At: Hello, sorry my late reply: Tom Tromey writes: > There is also a new variable, minibuffer-mutex. I think it is pretty > self-explanatory, but Giuseppe should probably explain it. It is a mutex that protects the mini-buffer from concurrent accesses. Only one thread can use the minibuffer at a time. > Giuseppe also has a patch of some kind to Gnus, but I didn't see it in > the tree, and I don't know exactly what it does. No, I don't have a patch, I have just experimented with "(run-in-thread gnus)" to verify it loads correctly in a separate thread. Also we have to mention the two new macros: (defmacro with-new-thread (&rest body)) -- BODY is executed in a new thread. (defmacro with-critical-section (mutex &rest body)) BODY is executed after MUTEX is locked and automatically released on exit. Giuseppe