pthread_t

John Emmas johne53@tiscali.co.uk
Sun Nov 23 22:50:00 GMT 2008


----- 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
> expect anything.
>> [...]
>> 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?
John
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /