This is the mail archive of the
pthreads-win32@sources.redhat.com
mailing list for the pthreas-win32 project.
snap-2004-11-03 breakage
- From: "Gisle Vanem" <giva at bgnett dot no>
- To: "pthreads-win32" <pthreads-win32 at sources dot redhat dot com>
- Date: Wed, 3 Nov 2004 14:17:59 +0100
- 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