DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 62NGidUX3625721 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 62NGidUX3625721 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=FapBJ2z1 X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E08F04BAD167 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1774284278; bh=PAxPqaIfjh4+TvIYGXXWVMGCt1n3/ToxD6MQ724V1jo=; h=To:Subject:In-Reply-To:References:Date:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=FapBJ2z1L0uP3WjM+AAL99nmGzYpfdj6ngSPmJ6Un5Rg4ZiQez4nR4AR12OPBJBO4 rNnC78YDKHakAhiCBN5qI0VWvzNQk/ZXSdZv3TtWE4HELrjeFmAbIIRGs4zZoVFGBc jdOjoE4SKN0fCdtgypK5xFsgAM7dEPeHgHQXd1SE= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BF8E94BAD16C ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BF8E94BAD16C ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1774284228; cv=none; b=AtkLpjx0oJt0m9ogfzAIBUDjJG0cn2/sGpJ9mfcN0tFI3qm9K8wH4I8oX4S3AJgoTEd2NKIe2ZnlbYsKaWe+tQ+aMQhA9QplpLldPOrL6e2PYX4IdAdi/Ymd/1hkTLnOap082oWrUwyHIBfzep0wB6lUrbE+qgo1XTLfzj3EEIw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1774284228; c=relaxed/simple; bh=37Y5OwmVeYi2NquhSHmzR+LJmDhX9IUqG4RjBlppcQo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=N2/SLJoWKWtuJfyHG311SOQP86+EloptJgFrAWJdih5C/m3aAVaKi8LJw/x1QIQIoA7icRwD6Wa7gejoh6Tr53XahDpjP2Mt9rEiK3LgylBiCAfmDf/h5YvkY5LAoSHFqsvnjEBxFIUUYxGDDRo6Rnbs2T9sX0/xvz2D5/ye3Jw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BF8E94BAD16C To: cygwin AT cygwin DOT com Subject: Re: std::mutex bug: Windows handle growth In-Reply-To: (Corinna Vinschen via Cygwin's message of "Mon, 23 Mar 2026 11:24:37 +0100") References: <2d48a740-ce2b-4259-8947-f5c875dd1672 AT hvc DOT rr DOT com> <87tsu97xr1 DOT fsf AT Gerda DOT invalid> Date: Mon, 23 Mar 2026 17:43:36 +0100 Message-ID: <87se9qpkcn.fsf@Gerda.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-purgate-server: smtpa06 X-purgate-type: clean X-purgate: clean X-purgate-size: 782 X-purgate-ID: 155817::1774284225-B9640C15-61E2ECAF/0/0 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: ASSI via Cygwin Reply-To: ASSI Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Corinna Vinschen via Cygwin writes: >> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71684 > > Reading this bug report, wouldn't just defining > _GTHREAD_USE_MUTEX_INIT_FUNC for Cygwin have the same effect? Yes, but it would also use an initializer function instead of a static initializer. Whether that would have any noticeable performance impact is unclear, but w.r.t. POSIX it's clear that it's no problem to use a static initializer, just unspecified whether the destructor is trivial or not. These two issues should not be mixed up in one configuration item IMHO. Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptations for KORG EX-800 and Poly-800MkII V0.9: http://Synth.Stromeko.net/Downloads.html#KorgSDada -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple