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: Concurrency Date: Sun, 28 Mar 2010 15:19:22 -0600 Message-ID: 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> <49707.130.55.132.67.1269807922.squirrel@webmail.lanl.gov> Reply-To: Tom Tromey NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269811220 14446 80.91.229.12 (28 Mar 2010 21:20:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 28 Mar 2010 21:20:20 +0000 (UTC) Cc: Ted Zlatanov , Stefan Monnier , emacs-devel@gnu.org To: herring@lanl.gov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 28 23:20: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 1Nvzu2-0001CV-2k for ged-emacs-devel@m.gmane.org; Sun, 28 Mar 2010 23:20:14 +0200 Original-Received: from localhost ([127.0.0.1]:53316 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nvzu1-0006tX-FM for ged-emacs-devel@m.gmane.org; Sun, 28 Mar 2010 17:20:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvztI-0006gM-FP for emacs-devel@gnu.org; Sun, 28 Mar 2010 17:19:28 -0400 Original-Received: from [140.186.70.92] (port=39238 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvztH-0006fd-Au for emacs-devel@gnu.org; Sun, 28 Mar 2010 17:19:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvztF-0002dR-JZ for emacs-devel@gnu.org; Sun, 28 Mar 2010 17:19:27 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:47814) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvztF-0002dJ-B1 for emacs-devel@gnu.org; Sun, 28 Mar 2010 17:19:25 -0400 Original-Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2SLJOxU009474 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 28 Mar 2010 17:19:24 -0400 Original-Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o2SLJNRm029403; Sun, 28 Mar 2010 17:19: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 o2SLJNK1015601; Sun, 28 Mar 2010 17:19:23 -0400 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id EE2CB88852D; Sun, 28 Mar 2010 15:19:22 -0600 (MDT) X-Attribution: Tom In-Reply-To: <49707.130.55.132.67.1269807922.squirrel@webmail.lanl.gov> (Davis Herring's message of "Sun, 28 Mar 2010 13:25:22 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by eggs.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:122827 Archived-At: >>>>> "Davis" == Davis Herring writes: >>> (mutex-lock MUTEX) >>> Acquire a mutex. If already held by this thread, returns. >> >> I.e. it's a "recursive/reentrant mutex". Davis> Hmm -- is it fully recursive, where you must unlock it as many times as Davis> you locked it? (I don't much care for the semi-recursive kind where one Davis> unlock is sufficient regardless of the number of lock operations...) Yeah, it doesn't keep a count. And in addition to this problem, mutex-unlock has a bug where it can unlock any mutex, not just ones own by the current thread. Tom