From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23468 invoked by alias); 3 Nov 2004 14:28:25 -0000 Mailing-List: contact pthreads-win32-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sources.redhat.com Received: (qmail 23305 invoked from network); 3 Nov 2004 14:28:22 -0000 Received: from unknown (HELO viruswall.ccf.swri.edu) (129.162.252.34) by sourceware.org with SMTP; 3 Nov 2004 14:28:22 -0000 Received: from RKINDREDXP (localhost [127.0.0.1]) by viruswall.ccf.swri.edu (8.12.10/8.12.6) with SMTP id iA3ESGwI009561; Wed, 3 Nov 2004 08:28:17 -0600 (CST) Reply-To: From: "Robert Kindred" To: "Gisle Vanem" , "pthreads-win32" Subject: RE: snap-2004-11-03 breakage Date: Wed, 03 Nov 2004 14:28:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit In-reply-to: <0b0b01c4c1a7$8a2fe3b0$0600000a@broadpark.no> X-SW-Source: 2004/txt/msg00128.txt.bz2 On the other hand, having pthread_t to be a pointer forces me to put compiler switches in my code that runs on both Windows and QNX. I would appreciate knowing the general direction things are taking. Robert Kindred -----Original Message----- From: pthreads-win32-owner@sources.redhat.com [mailto:pthreads-win32-owner@sources.redhat.com]On Behalf Of Gisle Vanem Sent: Wednesday, November 03, 2004 7:18 AM To: pthreads-win32 Subject: snap-2004-11-03 breakage snap-2004-11-03 breaks a lot of applications by the way 'pthread_t' is defined: typedef struct { void * p; /* Pointer to actual object */ unsigned int x; /* Extra information - reuse count etc */ } ptw32_handle_t; typedef ptw32_handle_t pthread_t; Code like (from Ettercap) pthread_t pid = ec_thread_getpid("golem"); if (pid != 0) ec_thread_destroy(pid); no longer works; you cannot compare a struct against 0. I'm not sure you really meant to do that or if the typedef should be typedef ptw32_handle_t *pthread_t; --gv