delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/10/03/04:16:33

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 6938GXT5070507
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 6938GXT5070507
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=aHGLYYP3
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8D5A94BA900F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1791015377;
bh=L+Tf9pCbKYAhltDKfuj8t9vT0K3YjIegta+EpfAEgyw=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=aHGLYYP3PhTQuHc5ziayTRToeIfZ7ZFUMgVQQm+JJPHJ6+BlIyXegVESAII2Ya4uS
Kac6VGhjrW2HE7i7lE7MpbrXu73aSA/4X1PluukZbF80xEg+U0UnSNzlQx5u2h/1Lf
UsyRhiJa6TukP8faVuPP21Q6R+ola8JhALP6LTbA=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 77ED94BA9001
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 77ED94BA9001
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791015328; cv=none;
b=wY4DEqcpF8gnTu6nMFEVhEE6hz1jxKH3LnCaeM5xSBR25mEOTd1uCMOGR66Rk6I8zCIccZWdQc6UfG6cJAE0+2sSrwhdXpuMrt3neXbtn3bF2HvY0VfMVJAdAp2vqSiDOw5yjvTb1aIQRailLQhiEBcHbnuNwAmZ8AsM1s4oFQs=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1791015328; c=relaxed/simple;
bh=+tOUACSTOKPA2qNYAR7ByDsDPKAeOqGtBOO8cpqtZmY=;
h=Message-ID:Date:MIME-Version:Subject:To:From;
b=FBotLNLYiPWOvVDclMCBWak8MA+Y1QFrlT/6B6OtEcPF1LHIsz2rAAajyYoBpBb6cIkfpjnSDP20/apX3p8siv3QfX6+frrTFgK7mSINaExRP25r4yb8itMTMWBwm6Cw38+jz2P7KAiM1VonzxASpwymIXFBWJwoFXdJU8jO3bc=
ARC-Authentication-Results: i=1; sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 77ED94BA9001
Message-ID: <e1718b7a-e765-4bcc-a8c6-10fa14b9c1b9@maxrnd.com>
Date: Sat, 3 Oct 2026 01:15:21 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Race during the first use of pthread_rwlock_{rd,wr}lock from
PTHREAD_RWLOCK_INITIALIZER
To: cygwin AT cygwin DOT com
References: <1789871270892 DOT 1574718721 DOT 2143240182 AT gmail DOT com>
<db9fa568-9370-42c5-8789-3306cb407c0d AT maxrnd DOT com>
<897197ae-26c9-498e-b275-da16047182d1 AT maxrnd DOT com>
In-Reply-To: <897197ae-26c9-498e-b275-da16047182d1@maxrnd.com>
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Mark Geisert via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Mark Geisert <mark AT maxrnd DOT com>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 6938GXT5070507

On 10/3/2026 1:12 AM, Mark Geisert via Cygwin wrote:
> I've tried to fix the behavior you're seeing in two ways.  First by 
> using ::is_initialized(rwlock) and second by seeing if *rwlock == 
> PTHREAD_RWLOCK_INITIALIZER, each while holding rwlock_initialization_lock.
That should be ::is_initializer(rwlock)

..mark

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2026   by DJ Delorie     Updated Sep 20 2026