This is the mail archive of the
mailing list for the Cygwin project.
----- Original Message -----
From: "Vaclav Haisman"
Sent: 23 November 2008 11:05
Subject: Re: pthread_t
The program is wrong. The pthread_t type is opaque. You should not
The only header that you should use to get pthread_t type is pthread.h.
Thanks Vaclav, you're absolutely right. On further investigation, this
turned out to be due to the fact that the program is expecting 'pthread_t'
and 'pthread_key_t' to be equivalent. When they were both unsigned long,
the compiler would perform a cast automatically. However, when they're
both pointers to struct, the compiler (understandably) complains. In this
case I should be able to get around the problem by casting, unless you
can think of a better solution?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html