From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: [RFC] Gnus generalized search, part II Date: Mon, 24 Apr 2017 12:17:37 -0500 Message-ID: <86wpa9wwr2.fsf@stephe-leake.org> References: <87zif930mt.fsf@ericabrahamsen.net> <87tw5hjnzr.fsf@hanan> <87mvb92er2.fsf@ericabrahamsen.net> <83efwkrhj1.fsf@gnu.org> <87inlw32ga.fsf@ericabrahamsen.net> <8337d0qxno.fsf@gnu.org> <87shl01bzb.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1493054272 16095 195.159.176.226 (24 Apr 2017 17:17:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Apr 2017 17:17:52 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.91 (windows-nt) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 24 19:17:48 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2hcS-00043A-0P for ged-emacs-devel@m.gmane.org; Mon, 24 Apr 2017 19:17:48 +0200 Original-Received: from localhost ([::1]:45221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2hcX-0006ka-8F for ged-emacs-devel@m.gmane.org; Mon, 24 Apr 2017 13:17:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2hcR-0006hn-UW for emacs-devel@gnu.org; Mon, 24 Apr 2017 13:17:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2hcO-000246-PJ for emacs-devel@gnu.org; Mon, 24 Apr 2017 13:17:47 -0400 Original-Received: from smtp129.dfw.emailsrvr.com ([67.192.241.129]:33148) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d2hcO-00020x-LE for emacs-devel@gnu.org; Mon, 24 Apr 2017 13:17:44 -0400 Original-Received: from smtp13.relay.dfw1a.emailsrvr.com (localhost [127.0.0.1]) by smtp13.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id CF2CC2032A for ; Mon, 24 Apr 2017 13:17:38 -0400 (EDT) X-Auth-ID: board-president@tomahawk-creek-hoa.com Original-Received: by smtp13.relay.dfw1a.emailsrvr.com (Authenticated sender: board-president-AT-tomahawk-creek-hoa.com) with ESMTPSA id 9CFA920391 for ; Mon, 24 Apr 2017 13:17:38 -0400 (EDT) X-Sender-Id: board-president@tomahawk-creek-hoa.com Original-Received: from Takver4 (76-218-37-33.lightspeed.kscymo.sbcglobal.net [76.218.37.33]) (using TLSv1.2 with cipher AES128-GCM-SHA256) by 0.0.0.0:587 (trex/5.7.12); Mon, 24 Apr 2017 13:17:38 -0400 In-Reply-To: <87shl01bzb.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Sat, 22 Apr 2017 12:25:12 -0700") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 67.192.241.129 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214263 Archived-At: Eric Abrahamsen writes: > Noam Postavsky writes: > > Basically we're sending search queries to multiple > servers, and using threads to make the external processes asynchronous. > C-g would come into play when one or more of those processes hangs or is > slow, and the user loses patience and wants to quit. The desired result > would be that whichever thread we're currently waiting on gets killed, There should never be _one_ thread that you are waiting on (except when there is only one left, of course); you should always be waiting for _any_ thread to respond. Otherwise, you don't have a truly asynchronous system; you have a polled synchronous system. So the user would be saying "kill all outstanding threads". -- -- Stephe