This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Modified pthread types


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.


Attachment: pthread_types.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]