From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.devel Subject: Re: Releasing the thread global_lock from the module API Date: Sun, 3 Mar 2024 07:25:29 +0100 Message-ID: References: <86cysdrja3.fsf@gnu.org> <470c6bea-805d-42dd-8bbd-936ea93c6579@gutov.dev> <19d51eaa-0f98-4542-9d08-0e9d23224dc4@gutov.dev> <87h6hojoqi.fsf@catern.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uLNQpcKjpdCt5Ahx" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11673"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Dmitry Gutov , Spencer Baugh , emacs-devel@gnu.org To: sbaugh@catern.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 03 07:26:09 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 1rgfIX-0002rD-2w for ged-emacs-devel@m.gmane-mx.org; Sun, 03 Mar 2024 07:26:09 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rgfIH-0002Ra-1f; Sun, 03 Mar 2024 01:25:55 -0500 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 1rgfI5-0002MU-Cu for emacs-devel@gnu.org; Sun, 03 Mar 2024 01:25:43 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rgfI1-0006gP-Dv for emacs-devel@gnu.org; Sun, 03 Mar 2024 01:25:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject :Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=e70y51jxiUayN6iBQFqMvNRX2CAox3KiktCvjfupn98=; b=K3xRFPewEJGes6ugdVzUHMotrU sekt00e4zby0acvUTe815wd0DUXsyZ+4k+DnE6o0JEbe/ijC+PwmbA6Pv/EGkIiOczHX+p9VSQ7Z5 ONhgZBq4rIA1XHf37gudV3/zvKVHaRfZE21gbeN6i9gyN3BEjX2NoUdDTj4Hkq1oLwvX34daeZs7C DJdYG9OzjPZBnzBiIbyLLWIBjf4CIz8SHWMoyxEFr/5Wdw9ma7uJcEoWZp4SsDwabK37wxwf+trO5 NgmEhQpY36bAbbjxtfiFg0boPbFhNrD3ivOlTnvMQeHi8wT2jwMNOX5cbWeOtxHh1/i4wmgSFMGIP wjXCEARA==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1rgfHt-0007IR-Io; Sun, 03 Mar 2024 07:25:29 +0100 Content-Disposition: inline In-Reply-To: <87h6hojoqi.fsf@catern.com> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de 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, 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:316725 Archived-At: --uLNQpcKjpdCt5Ahx Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 02, 2024 at 09:41:38PM +0000, sbaugh@catern.com wrote: > tomas@tuxteam.de writes: [safe suspend wrt. concurrency] > > I don't think this is currently possible. >=20 > It is currently possible: this is what thread-yield, sleep-for, and > accept-process-output do when run from a Lisp thread. The thread pauses > execution and other threads execute. This has worked since the > introduction of thread support. Thanks for the correction. Cheers --=20 t --uLNQpcKjpdCt5Ahx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZeQX0QAKCRAFyCz1etHa RtVvAJ9zBKDhC7MG9qTCKWO+ffl8qgSatQCfSmTcTv8X+Bs7/itE9RBx6Go+R2s= =pwaD -----END PGP SIGNATURE----- --uLNQpcKjpdCt5Ahx--