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: Async DNS lookups Date: Tue, 02 Nov 2010 13:28:42 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1288718952 18335 80.91.229.12 (2 Nov 2010 17:29:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 2 Nov 2010 17:29:12 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 02 18:29:07 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 1PDKfN-0004Mp-EW for ged-emacs-devel@m.gmane.org; Tue, 02 Nov 2010 18:29:02 +0100 Original-Received: from localhost ([127.0.0.1]:43079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDKfL-0008AE-O0 for ged-emacs-devel@m.gmane.org; Tue, 02 Nov 2010 13:28:59 -0400 Original-Received: from [140.186.70.92] (port=48814 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDKfB-00088N-GM for emacs-devel@gnu.org; Tue, 02 Nov 2010 13:28:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDKfA-0001lj-B0 for emacs-devel@gnu.org; Tue, 02 Nov 2010 13:28:49 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:42503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDKfA-0001lc-5O for emacs-devel@gnu.org; Tue, 02 Nov 2010 13:28:48 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id oA2HSktC023316; Tue, 2 Nov 2010 13:28:46 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 37F27B40E9; Tue, 2 Nov 2010 13:28:42 -0400 (EDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Tue, 02 Nov 2010 17:29:58 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3667=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:132285 Archived-At: >> Presumably that would use your basic "spin off a thread that blocks >> in getaddrinfo and invokes a callback when done" approach, which >> (according to the blog Tom pointed to) is all getaddrinfo_a does >> anyways. > Are we Allowed to spin off a thread in Emacs? Of course, with the usual restriction: no access to shared data without proper synchronization. > If so, this sounds like a no-brainer to do in C instead of in dns.el. Patch welcome, Stefan