From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Questions about throw-on-input Date: Mon, 11 May 2020 19:19:44 +0300 Message-ID: <83d07abg0v.fsf@gnu.org> References: <1f5456b9-1fd6-5084-1578-8f6a413fe1b4@web.de> <834ksmd0fr.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="20595"; mail-complaints-to="usenet@ciao.gmane.io" Cc: alexanderm@web.de, yyoncho@gmail.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 11 18:20:56 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYBAm-0005HV-35 for ged-emacs-devel@m.gmane-mx.org; Mon, 11 May 2020 18:20:56 +0200 Original-Received: from localhost ([::1]:54816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYBAk-0007iT-Vn for ged-emacs-devel@m.gmane-mx.org; Mon, 11 May 2020 12:20:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYB9g-0006Pf-R3 for emacs-devel@gnu.org; Mon, 11 May 2020 12:19:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40148) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYB9g-000444-7o; Mon, 11 May 2020 12:19:48 -0400 Original-Received: from [176.228.60.248] (port=1103 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jYB9f-0000zq-5s; Mon, 11 May 2020 12:19:47 -0400 In-Reply-To: (message from Stefan Monnier on Mon, 11 May 2020 11:21:33 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:249811 Archived-At: > From: Stefan Monnier > Cc: Alexander Miller , yyoncho@gmail.com, > emacs-devel@gnu.org > Date: Mon, 11 May 2020 11:21:33 -0400 > > > It is unusual for non-main threads to wait for keyboard input > > descriptor. You shouldn't rely on that because it can only work very > > rarely, if at all, and when it does, you are likely to see serious > > problems. Normally, the 'pselect' call issued by a non-main thread > > will not mark the keyboard descriptor as being waited for. > > Should input-pending-p and friends catch that case and signal an error, then? Do we want that?