delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
X-Authentication-Warning: | webmail3.knoware.nl: nobody set sender to pieterdv AT knoware DOT nl using -f |
To: | cygwin AT cygwin DOT com |
Subject: | Bug in pthread_equal |
Message-ID: | <996153772.3b6019acb988c@webmail3.ision.nl> |
Date: | Thu, 26 Jul 2001 15:22:52 +0200 (CEST) |
From: | Pieter de Visser <pieterdv AT knoware DOT nl> |
MIME-Version: | 1.0 |
User-Agent: | IMP/PHP IMAP webmail program 2.2.5 |
X-Originating-IP: | 212.153.190.4 |
There seems to be a bug in pthread_equal: int pthread_equal(pthread_t t1, pthread_t t2) should return a non-zero value if t1 and t2 refer to the same thread, and a zero value otherwise. With the Cygwin DLL 1.3.2 implementation, it is the other way around: the function returns zero if t1 and t2 refer to the same thread, and a non-zero value otherwise. One way to solve this would be to change cygwin-1.3.2-1/winsup/cygwin/thread.cc, at line 1811: replace int __pthread_equal (pthread_t * t1, pthread_t * t2) { return (*t1 - *t2); } with int __pthread_equal (pthread_t * t1, pthread_t * t2) { return (*t1 == *t2); } (I did not test this, though.) Pieter P.S. Please cc: any replies to me as I don't read this mailing list. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |