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: Emacs without threads Date: Thu, 14 Dec 2023 15:01:23 +0200 Message-ID: <83edfpq6os.fsf@gnu.org> References: <87il516pgm.fsf@ledu-giraud.fr> <83il51qbiy.fsf@gnu.org> <877clh6jky.fsf@ledu-giraud.fr> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21860"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Manuel Giraud Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 14 14:02:21 2023 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 1rDlM4-0005Nw-75 for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Dec 2023 14:02:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDlLK-00062k-2w; Thu, 14 Dec 2023 08:01:34 -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 1rDlLH-00060L-7Y for emacs-devel@gnu.org; Thu, 14 Dec 2023 08:01:31 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rDlLG-00035j-JM; Thu, 14 Dec 2023 08:01:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Fe22zN36ZlUuHeHpGJXM2Eymrd3mbdJCRIaFj0aAhCE=; b=pKCvMV47KArv HmXGmVFw7Hk/Gl7RCqZ0JgAmkHbT5zk/aYURQifepYZx9BYdXi5kNxaxMOzGypLZxb/IUcCQMDyc4 3yki3lymsKksP+zDMJh/mEuvdXyX6vT78WSOwm5q4uGhD8Tt/0wc6l0WrHnACf/we7FTzoViSuH0G 6snujgBhzYzyI//F6zOZW4AZwkIiPtpkH7DhNFaMTyn9ICFJXRNRFBCauKC4VXZiAo9ycn9bLAaxP sDvnVQ2op8K1PSQFuIOXWrrpgUa59tpwCzf9/9l0FlepaO4SvhA6Txn6JWM6lGmiJYKRxx5raVFbP CyViJMZ2aUyl/QXGTrGOKw==; In-Reply-To: <877clh6jky.fsf@ledu-giraud.fr> (message from Manuel Giraud on Thu, 14 Dec 2023 13:43:09 +0100) 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:313777 Archived-At: > From: Manuel Giraud > Cc: emacs-devel@gnu.org > Date: Thu, 14 Dec 2023 13:43:09 +0100 > > Eli Zaretskii writes: > > > What do you mean by "without thread support at all", and how is it > > different from what you get with --without-threads? > > I mean that Emacs won't be able to start any thread (for example via > pthread_* functions). That's what --without-threads does. > I thought that --without-threads only removed the Lisp support for > threads because, from a debugging session, Emacs does seem to > continue to start threads. The threads you see under a debugger are not Lisp threads, they are threads started by GTK and other libraries we link against. You cannot disable them, except by building Emacs without those libraries (I think just without GTK should do, if you are on GNU/Linux). > (FWIW, I want this to simplify debugging because on my machine I cannot > make GDB to switch to the correct thread How come? > or to continue running other threads) Why would you need to do that?