From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: igc, macOS avoiding signals Date: Tue, 31 Dec 2024 11:00:38 +0100 Message-ID: References: <799DDBC5-2C14-4476-B1E0-7BA2FE9E7901@toadstyle.org> <87h66loc17.fsf@gmail.com> <878qrxoayj.fsf@gmail.com> <8734i5o6wc.fsf@gmail.com> <87cyh9mpn5.fsf@gmail.com> <874j2l1hei.fsf@protonmail.com> <874j2lmd37.fsf@gmail.com> <87msgdkt29.fsf@gmail.com> <86h66lnjrt.fsf@gnu.org> <868qrxnfrw.fsf@gnu.org> <87a5ccl2zx.fsf@gmail.com> <87h66kfae5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35903"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , pipcet@protonmail.com, spd@toadstyle.org, emacs-devel@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 31 11:01:12 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 1tSZ3o-000915-LO for ged-emacs-devel@m.gmane-mx.org; Tue, 31 Dec 2024 11:01:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSZ3P-0004Td-A2; Tue, 31 Dec 2024 05:00:47 -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 1tSZ3M-0004TC-D3 for emacs-devel@gnu.org; Tue, 31 Dec 2024 05:00:44 -0500 Original-Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tSZ3K-00033N-NH; Tue, 31 Dec 2024 05:00:44 -0500 Original-Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5d0d32cd31aso14061613a12.0; Tue, 31 Dec 2024 02:00:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735639240; x=1736244040; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=jqI/9eVz6Zbd2aoyG/EwOWYhcI4t+T2KOVIIy9pqllI=; b=ijeqzfSWBe3nyy4xpIKKHn5RMxp2S+xDtLe6OujedVJi4KnnwZ+yn4XoCXCMbGtiBd q6f2US6kX+Qj1D03DWMXpNWQgHDphN5vRD7yhCvKGPeSe3Y7SUmHksIHvQkb/v/iPooT 0l9JjB9S3aSBvELDYzBg+amsaueJMjdXWfp1nuZQo+qAz8LIa5/JJHNb1vfXbT75Ijl5 +XfTjkRmlI4HmTGP1lw1wjjPHUkfgOC8jtekszennGz0zTtl0F3go2DiZtRBf+bUPe4t MZc6+VE90oPsZRBTuCMnbRZLJK7XDBRhTDbOjuzg5gTYzq/0YNrzu6nXblEuK2KFHZJE uyyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735639240; x=1736244040; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jqI/9eVz6Zbd2aoyG/EwOWYhcI4t+T2KOVIIy9pqllI=; b=nTKRWVfW/xdpqQXIQRCEveKlAgk/DP9I0LPF12Hz/sfXoJIbump1lcWDG7XE/51tdH FGXYWr4uLnhWlQA5CFvdVhp9WhkK29BmBRS6F7dXKs5xL0spvBLCTwAv6M480hIvh0/l ySEN2tjdjcsziGEoGe0+0iPmVg1BB7anedbkrp25bKxkyIGA0d/HPBzkZswZ2kfR62nc jnlqPZnFYhEoYsc9o4k+b9fLnAOJjuOLDU879YAP40+vWRM0GMvWH/ChYxsOOVVzeNVM sDpgsSiNTdBXJlQOgVbZ4mDgMcGGEycOf/COZPpYozFs5B3XEB3KvDVh+aJuq7BAGXDk zAag== X-Forwarded-Encrypted: i=1; AJvYcCVhOqfYEVGM3/nwdZ7SGKUAoO09r4JrcmS2UAGQY7mz78EXxX3IrstUPh4HMX1hY9yOnCcM3CzgfMKyMQ==@gnu.org X-Gm-Message-State: AOJu0YxX04Y8dIPIpdAxD914uQm8KFRGxkBH1k7oiFfBZ+5mmz9FOWFG LbilMT5ZIO6kwTzMBujewtZcK/x/FqJr5fp0Qulhtvi+A24BC7QwMFCZiA== X-Gm-Gg: ASbGnctjCUD5Wpvop7FRlx9Ilisr3VbMjPOEuh7PzbShGjMZVuCPa6lDzLH8oDCWqJt Wq4UENSwXJx+r9L1iR+logEuuVKmIx65Xch/8H+d6OFpb3OZzcfBEFXgNvx6WAEDbGm4gxwnB4V CNwoaIvakc58Va/+7rP7YGBaMmR8XOWz4i6hypOfpcTCPTSLQxQu5cEozXdlOSpCMHodaIvufa0 VOR/WJIuHYFenAdrvQAhF4iKZbI1WnMhiJUmESq0NMPu0OMes1INR1hwm1srfEV/darq/8opmm+ R6u8SAGYJaQgU9VIOVc1MNHTY3Eldjper2wWGbC0uah1jPoFM9Rb70xBukmfo3BxtA== X-Google-Smtp-Source: AGHT+IHxz769IVwFcZsASDmx4eikDPe1A+6KwMjMev2tFUO31sfgewb4Y23z4JKBGLC31J+kR8W4uA== X-Received: by 2002:a05:6402:270d:b0:5d0:fb56:3f with SMTP id 4fb4d7f45d1cf-5d81dd9cdf0mr85973237a12.12.1735639240019; Tue, 31 Dec 2024 02:00:40 -0800 (PST) Original-Received: from pro2 (p200300e0b7216c0021e5e367c6afc189.dip0.t-ipconnect.de. [2003:e0:b721:6c00:21e5:e367:c6af:c189]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aac0f016babsm1563998466b.169.2024.12.31.02.00.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Dec 2024 02:00:39 -0800 (PST) In-Reply-To: <87h66kfae5.fsf@gmail.com> (Helmut Eller's message of "Tue, 31 Dec 2024 10:51:30 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::536; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x536.google.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:327488 Archived-At: Helmut Eller writes: >> Hm. Have you perhaps looked at a pthread implementation, what such a >> mutex actually is on Linux? > > Judging from the source here > > https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=sysdeps/nptl/bits/struct_mutex.h;hb=HEAD > > and here > > https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=nptl/pthread_mutex_trylock.c;hb=HEAD > > I would say that the mutex is a struct with multiple fields and that > pthread_mutex_trylock is neither a syscall nor an atomic instruction. > The struct may simply be in an inconsistent state at the time t0, the > beginning of the SIGPROF handler. > > Helmut Thanks. It's similar on macOS. Too bad, I had hoped for some OS call or something.