delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/11/18/09:54:58

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Sun, 18 Nov 2001 17:53:17 +0300
From: egor duda <deo AT logos-m DOT ru>
X-Mailer: The Bat! (v1.53 RC/4)
Reply-To: egor duda <deo AT logos-m DOT ru>
Organization: deo
X-Priority: 3 (Normal)
Message-ID: <914484468.20011118175317@logos-m.ru>
To: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
CC: cygwin-developers AT cygwin DOT com
Subject: Re: pthread_mutex_init fails
In-Reply-To: <020701c1703f$1e672010$0200a8c0@lifelesswks>
References: <200111171814 DOT MAA29795 AT duracef DOT shout DOT net>
<20011117194703 DOT GA27975 AT redhat DOT com> <2615386444 DOT 20011118002102 AT logos-m DOT ru>
<028f01c1702f$d438a360$0200a8c0 AT lifelesswks>
<19373219704 DOT 20011118162457 AT logos-m DOT ru>
<00c501c17037$188e84b0$0200a8c0 AT lifelesswks>
<1493522465 DOT 20011118173715 AT logos-m DOT ru>
<020701c1703f$1e672010$0200a8c0 AT lifelesswks>
MIME-Version: 1.0

Hi!

Sunday, 18 November, 2001 Robert Collins robert DOT collins AT itdomain DOT com DOT au wrote:

>> >> the problem remains that the patched code still won't work on w95,
>> >> but the current code doesn't work at all!
>>
>> RC> The current code should run fine on w95 and 2k - it did for me
>> RC> before committing it 0 I tested on both 9x and 2k.
>>
>> RC> However the bug is likely the cause for Jasons continued python
>> RC> failures.
>>
>> really? have you checked if exactly one thread wakes up when condition
>> variable is signaled? i _can't_ see how current code can work at all.
>> please run winsup.api/pthread/condvar3_1.c test on w2k and tell what
>> the result is. btw, are you sure you've been testing on stock w95? or
>> it was w98? or osr2? msdn says that InterlockedIncrement() behavior
>> changed from w95 to w98 and from nt3.5 to nt4.0.
>>
>> again, i can't see how current code can work at all either on w95 or
>> on w98 or on nt or on w2k. what exactly have you tested?

RC> 95 OSR 2 and W2k SP2. Why can't it work? I haven't checked that _only_
RC> one thread wakes up no,

because, according to msdn, on w95 the value InterlockedIncrement
returns is:

==================================================================
Windows 95, Windows NT 3.51 and earlier: If the result of the
operation is zero, the return value is zero. If the result of the
operation is less than zero, the return value is negative, but it is
not necessarily equal to the result. If the result of the operation is
greater than zero, the return value is positive, but it is not
necessarily equal to the result.
==================================================================

osr2 is possibly different from w95 in this regard.

RC> but the woken threads are serialised regardless.

i'm not sure i understand what you mean "serialized" in this
context.

Egor.            mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019