From b77a92d5dbb0147c8dd872c0be8f4fe73a750490 Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 5 Jun 2001 07:48:19 +0000 Subject: * nonportable.c (pthread_mutex_setdefaultkind_np): Remove - should not have been included in the first place. (pthread_mutex_getdefaultkind_np): Likewise. * global.c (ptw32_mutex_default_kind): Likewise. * mutex.c (pthread_mutex_init): Remove use of ptw32_mutex_default_kind. * pthread.h (pthread_mutex_setdefaultkind_np): Likewise. (pthread_mutex_getdefaultkind_np): Likewise. * pthread.def (pthread_mutexattr_setkind_np): Added. (pthread_mutexattr_getkind_np): Likewise. * README: Many changes that should have gone in before the last snapshot. * README.NONPORTABLE: New - referred to by ANNOUNCE but never created; documents the non-portable routines included in the library - moved from README with new routines added. * ANNOUNCE (pthread_mutexattr_setkind_np): Added to compliance list. (pthread_mutexattr_getkind_np): Likewise. --- pthread.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'pthread.h') diff --git a/pthread.h b/pthread.h index 56b6231..bf9e970 100644 --- a/pthread.h +++ b/pthread.h @@ -806,20 +806,20 @@ int pthread_rwlock_unlock(pthread_rwlock_t *lock); * Non-portable functions */ +/* + * Compatibility with Linux. + */ int pthread_mutexattr_setkind_np(pthread_mutexattr_t * attr, int kind); int pthread_mutexattr_getkind_np(pthread_mutexattr_t * attr, int *kind); /* - * Remaps the default mutex kind to any of the - * other possible types. Returns the previous type. + * Possibly supported by other POSIX threads implementations */ -int pthread_mutex_setdefaultkind_np(int kind); -int pthread_mutex_getdefaultkind_np(int *kind); - - -/* Possibly supported by other POSIX threads implementations */ int pthread_delay_np (struct timespec * interval); +/* + * Returns the Win32 HANDLE for the POSIX thread. + */ HANDLE pthread_getw32threadhandle_np(pthread_t thread); /* -- cgit v1.2.3