From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Async DNS lookups Date: Thu, 04 Nov 2010 09:27:39 +0100 Message-ID: References: <35456.130.55.118.19.1288819785.squirrel@webmail.lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1288859297 11640 80.91.229.12 (4 Nov 2010 08:28:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 4 Nov 2010 08:28:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 04 09:28:09 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 1PDvAx-0002YQ-GW for ged-emacs-devel@m.gmane.org; Thu, 04 Nov 2010 09:28:03 +0100 Original-Received: from localhost ([127.0.0.1]:39970 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDvAw-0002b0-Qu for ged-emacs-devel@m.gmane.org; Thu, 04 Nov 2010 04:28:02 -0400 Original-Received: from [140.186.70.92] (port=34936 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDvAi-0002an-4a for emacs-devel@gnu.org; Thu, 04 Nov 2010 04:27:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDvAh-0002oh-1S for emacs-devel@gnu.org; Thu, 04 Nov 2010 04:27:48 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:60137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDvAg-0002mj-Ss for emacs-devel@gnu.org; Thu, 04 Nov 2010 04:27:47 -0400 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id BED501C00411; Thu, 4 Nov 2010 09:27:39 +0100 (CET) Original-Received: from hase.home (ppp-88-217-116-167.dynamic.mnet-online.de [88.217.116.167]) by mail.mnet-online.de (Postfix) with ESMTP id 808F51C00258; Thu, 4 Nov 2010 09:27:39 +0100 (CET) X-Yow: This ASEXUAL PIG really BOILS my BLOOD... He's so..so.....URGENT!! In-Reply-To: (Stefan Monnier's message of "Wed, 03 Nov 2010 22:24:53 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.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:132353 Archived-At: Stefan Monnier writes: >>> I think the implication is that you would have to add one (and use it >>> every time any code whatsoever accessed that variable). >> It's already being used several places without any locking. > > Indeed, because it's only accessed by a single thread right now (it's > not even accessed from a signal handler). So you'd have to add locking > if it becomes shared between threads. Since it is using Lisp values it cannot be used by anything but the main thread anyway. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."