From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: master 4ac4cec652f: Prevent freezes on macOS (bug#69561) Date: Wed, 13 Mar 2024 19:07:51 +0800 Message-ID: <87sf0uv188.fsf@yahoo.com> References: <171031025289.32157.8913441761015064536@vcs2.savannah.gnu.org> <20240313061054.71155C1FB4A@vcs2.savannah.gnu.org> <87wmq6vam3.fsf@yahoo.com> 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="37666"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org, Gerd =?utf-8?Q?M=C3=B6llmann?= To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 13 12:09:27 2024 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 1rkMUB-0009ds-Iy for ged-emacs-devel@m.gmane-mx.org; Wed, 13 Mar 2024 12:09:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rkMSz-000297-9G; Wed, 13 Mar 2024 07:08:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rkMSw-00028C-1p for emacs-devel@gnu.org; Wed, 13 Mar 2024 07:08:10 -0400 Original-Received: from sonic311-23.consmr.mail.ne1.yahoo.com ([66.163.188.204]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rkMSu-0001mc-3g for emacs-devel@gnu.org; Wed, 13 Mar 2024 07:08:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1710328082; bh=ztJXAo1iM9AtcK7n8TPf9KqXY8bu1sExxdvVkWueGn8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=pGl2K9CL56VaAlS6pixS8ycDbJHQa/NsBp4S18xyxxJoUBiuDz2ATF1L8Pp8PHAr66xfUj8CsTgmyAn57FqqsJXCtNe9PCciXaDc/0C5bF9E/8zVhzPaBniSPzLJbTr40yiIZ8JhIta1lvCPwuTZct09UDvN5umjUKpXUjAHI4A1VBblyJBQ49WrXX1GYAnX0gBCJK1hvzKEYREdgrBBDfhuhVnOXEX6/xXBNmt3MNIK3HTdEzyCCMMwdDCLU72GXNkLVdgHcXVrOAZl5M/lm4fR9+Mis9cUuNjnA2hrOjQzcikulKBvDdDswNYhb3ta2A5oSQyQlGH9AenrhKVIOA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1710328082; bh=+ZxYy761IM1fWMwpPZxO4py1SvEnad3TwBnb6XJ4ZLE=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=iY9bSlB8INqB9Wo14/NXye8DyZCioLdLOLC33XhvWxMP+X828d92yDYWqjOLo6xXlEgc0si/gOc6jXsEiLn6MyZBqf9gEnuofMUxd5sAi4llOh7Bz939QM2TrBtoSlDwJW/4WDwdW6IHxrQmPVItrus/jm9rZuUE9a5RWukXZg6YVUzeOq66axTK686Jwy9UBKI22tcpKwI85tdL1O9X3yhZyu7x+uLZbORICC0IYw1Nzu22zX+v1pACcihbbkduNhHHc4VBD1YRm1GOZvqYu8p3hEmhWQocO4nIoNLDT15AVSvzzA/8kjGVkT2HvxUbKQ3Z1ezihZlSMlPyBBZ10w== X-YMail-OSG: 2_PzQuoVM1luzONivXe35e_elxRmbJQgsZGNuss.2t3sVjGlRqonQhWt2DltBP1 ZR90uolfQuA5vHZLlENhMhXbdrOQRNBvkkJoQSJW.fcoao7NHaHwk5oANxC2641ZoDUORkoPAG.D ERi3SJMET59seQMx.3qevNIrps1B731z5luTwQ6aHA5xJ0tdy9paLGKrGJhRn9ouIcaXX8AH5uRE LoZmtsZiZkdeXYyDUFEs0X1vvs_X5cUk4xZ4pt.kAgK1mhh_T22MzkZdosNLHus3CjA1ybkZFqno DY_Q6pjCh4mkVxMf1.ebt6XaGkfbTzyIpIhMe9oeV0o6NizwhS2M1mVRlpof1YMPXn9B_dJmqw9M WbfzCUYmIeD6yuWvf2UCwBmy8OvoFYVJq2WoekMP2tsUOYaNF2y5oRimTu3GY2QkDGaoGUyLm9S7 oGPJbdPNxLHhITM7QQ67K0JIyFDblUIbAHAkGWF1GRcEEkBcFaCPh38.MZrxPhmaGzTJF7GjKSrS vEepKLa0brX03csARlmcRUbqWSBmQbQrh6MbPamqsTNI5zwkZicbTbaQXkpfoLr.Qbyb7w.8igss qf19nd2aA6jlL.xtDm0ZLNVHSa_8bFeQlYsTzSYF8SF9QjXYfPBsjnJQBcv..avgWi8u3J_YP2CN OytFJnmgm0rIp.Z2ub.jLrBK.JnLGwJtlJ7u8IimyzWrOMVR4309Lx8BgCc8xcyHpDfq4YuVt_.E Gjxxsl21gzWAlpEJn4XUpi7nd8VktPIX..CvnTOOAOxjD6.IO3y7TdA0zJesUWEO4Z2VPYbwE2NA mooYQnokJaSKKZ3efISEPNKXBXXWUM1V2mpxzEUhul X-Sonic-MF: X-Sonic-ID: e8afdb20-4dbb-4b70-ab1b-8f42d12c0edf Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Wed, 13 Mar 2024 11:08:02 +0000 Original-Received: by hermes--production-sg3-6dc75bc8fb-67hzc (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ca89fe1ee4c52b61462d1a52f2d8a5c7; Wed, 13 Mar 2024 11:07:58 +0000 (UTC) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llmann?= =?utf-8?Q?=22's?= message of "Wed, 13 Mar 2024 09:48:28 +0100") X-Mailer: WebService/1.1.22129 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.188.204; envelope-from=luangruo@yahoo.com; helo=sonic311-23.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:317029 Archived-At: Gerd M=C3=B6llmann writes: > I interpret this as meaning that it's possible to do this, considering > that Emacs' threads run one at a time only, AFAIU. If that's no > longer the case, we have a problem, I agree. My mistake. I assumed thread_select was the function calling ns_select, not the other way around. Nevertheless, we've received reports of the toolkit aborting when invoked from a non-main thread, so would you please test this change in an environment where several threads are active?