diff options
| author | bje <bje> | 1998-07-12 10:34:00 +0000 | 
|---|---|---|
| committer | bje <bje> | 1998-07-12 10:34:00 +0000 | 
| commit | ba45985bb3a28170fe742a4812145b7058960ea8 (patch) | |
| tree | 69c535ae6774d43a635a5005d4d4e38c401dc858 | |
| parent | 6883b6f2b2d02877684bb4df7afae0bdc03a963c (diff) | |
1998-07-12  Ben Elliston  <bje@cygnus.com>
	* pthread.h (pthread_mutexattr_t): Define this type.
	(pthread_mutexattr_setprotocol): Add function prototype.
	(pthread_mutexattr_getprotocol): Likewise.
	(pthread_mutexattr_setprioceiling): Likewise.
	(pthread_mutexattr_getprioceiling): Likewise.
| -rw-r--r-- | pthread.h | 17 | 
1 files changed, 17 insertions, 0 deletions
| @@ -23,6 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  #define _PTHREADS_H  typedef HANDLE pthread_t; +typedef void pthread_mutexattr_t;  #ifdef __cplusplus  extern "C" { @@ -41,6 +42,22 @@ int pthread_equal(pthread_t t1, pthread_t t2);  int pthread_join(pthread_t thread, void ** valueptr); +/* These functions cannot be implemented in terms of the Win32 API. +   Fortunately they are optional.  Their implementation just returns +   the correct error number. */ + +int pthread_mutexattr_setprotocol(pthread_mutexattr_t *attr, +				  int protocol); + +int pthread_mutexattr_getprotocol(const pthread_mutexattr_t *attr, +				  int *protocol); + +int pthread_mutexattr_setprioceiling(pthread_mutexattr_t *attr, +				      int prioceiling); + +int pthread_mutexattr_getprioceiling(const pthread_mutexattr_t *attr, +				     int *ceiling); +  #ifdef __cplusplus  }  #endif /* __cplusplus */ | 
