From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: "Asynchronous Requests from Emacs Dynamic Modules" Date: Sat, 31 Oct 2020 11:13:45 +0200 Message-ID: <83lffmhi5y.fsf@gnu.org> References: <86imarfldb.fsf@akirakyle.com> <86y2jn9j70.fsf@163.com> <83pn4y96ut.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9288"; mail-complaints-to="usenet@ciao.gmane.io" Cc: all_but_last@163.com, ak@akirakyle.com, emacs-devel@gnu.org To: yyoncho Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 31 10:14:51 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 1kYmyI-0002Iu-6z for ged-emacs-devel@m.gmane-mx.org; Sat, 31 Oct 2020 10:14:50 +0100 Original-Received: from localhost ([::1]:44232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYmyH-0003al-8Z for ged-emacs-devel@m.gmane-mx.org; Sat, 31 Oct 2020 05:14:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYmxY-0003BP-7W for emacs-devel@gnu.org; Sat, 31 Oct 2020 05:14:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35829) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYmxV-0004dQ-3u; Sat, 31 Oct 2020 05:14:01 -0400 Original-Received: from [176.228.60.248] (port=4822 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kYmxU-00085n-Kz; Sat, 31 Oct 2020 05:14:00 -0400 In-Reply-To: (message from yyoncho on Sat, 31 Oct 2020 10:02:41 +0200) 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:258577 Archived-At: > From: yyoncho > Date: Sat, 31 Oct 2020 10:02:41 +0200 > Cc: Zhu Zihao , ak@akirakyle.com, > emacs-devel > > Allowing condition-notify call from non-elisp threads would solve the problem as well. I don't see how that could be possible without redesigning the entire Lisp threads machinery. In general, no part of the Lisp interpreter -- and that includes the Lisp thread related functions -- can ever safely run from an async non-Lisp thread.