From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Peter Dean Newsgroups: gmane.emacs.devel Subject: Re: [External] : Re: Would you say this information window is well designed? Date: Tue, 23 Feb 2021 17:59:08 +0000 Message-ID: References: <83eeh6vmg2.fsf@gnu.org> <835z2ivknw.fsf@gnu.org> <83sg5mu1hn.fsf@gnu.org> Reply-To: Peter Dean Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31421"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "drew.adams@oracle.com" , "stefankangas@gmail.com" , "larsi@gnus.org" , "dgutov@yandex.ru" , "emacs-devel@gnu.org" To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 23 19:00:32 2021 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 1lEbz4-00085e-JU for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Feb 2021 19:00:30 +0100 Original-Received: from localhost ([::1]:48596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEbz3-0003GK-J7 for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Feb 2021 13:00:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEbxz-0002oO-IB for emacs-devel@gnu.org; Tue, 23 Feb 2021 12:59:23 -0500 Original-Received: from mail-40132.protonmail.ch ([185.70.40.132]:31041) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEbxr-0004QZ-Ng for emacs-devel@gnu.org; Tue, 23 Feb 2021 12:59:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1614103151; bh=ntYyzJA0fcRpbBLyiVpvmJd5DJzWIASUEdKD3z8BzCk=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=Ayy1NQJbeZk8GSx5yTHREQvqwThVFfpFQIcQCqqBaoL3o9BzXFZkQbHRyuVjOjSEZ dT7789QIqtIUU/hQx0LLZEkKqKhouyumJjPj/saDWJt+lc/AeA/3WvRxVz8QqnVecy zr3D36ckyzutLkx8QAe8IdVMYu3gCIVhgYr3IIuo= In-Reply-To: <83sg5mu1hn.fsf@gnu.org> Received-SPF: pass client-ip=185.70.40.132; envelope-from=laszlomail@protonmail.com; helo=mail-40132.protonmail.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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:265544 Archived-At: On Tuesday, February 23, 2021 6:40 PM, Eli Zaretskii wrote: > > Yes, because there's no guarantee that the thread running the UI > (usually the main thread) is the one that will take the lock released > by thread-yield. Then there could be a refresh rate value (e.g. 15 ms or some other value, configurable) and thread-yield could check if the main thread got the lock within this time window. If not then it would give the lock explicitly to the main thread, otherwise the next thread gets the lock. This could guarantee UI responsivity which is the first priority and other threads get the lock only when the UI is fresh enough.