[PATCH] Modified pthread types
Thomas Pfaff
tpfaff@gmx.net
Fri Jul 5 01:38:00 GMT 2002
I have attached a patch with modified (dummy) pthread typedefs.
This should give the compiler a chance to do some type validations,
for example:
pthread_t t;
pthread_create(t,...) //wrong
pthread_create(&t,...) // right
pthread_cancel(t) //right
pthread_cancel(&t)//wrong
With the actual typedefs as void * the compiler will treat all versions
valid.
Thomas
Changelog
2002-07-05 Thomas Pfaff <tpfaff@gmx.net>
* include/semaphore.h: Modified typedef for sem_t.
* include/cygwin/types.h: Modified typedefs for pthread_t,
pthread_mutex_t, pthread_key_t, pthread_attr_t,
pthread_mutexattr_t, pthread_condattr_t, pthread_cond_t,
pthread_rwlock_t and pthread_rwlockattr_t.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pthread_types.patch
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020705/8b4e2303/attachment.ksh>
More information about the Cygwin-patches
mailing list