summaryrefslogtreecommitdiff
path: root/pthread.h
diff options
context:
space:
mode:
authorbje <bje>1998-07-12 10:34:00 +0000
committerbje <bje>1998-07-12 10:34:00 +0000
commitba45985bb3a28170fe742a4812145b7058960ea8 (patch)
tree69c535ae6774d43a635a5005d4d4e38c401dc858 /pthread.h
parent6883b6f2b2d02877684bb4df7afae0bdc03a963c (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.
Diffstat (limited to 'pthread.h')
-rw-r--r--pthread.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/pthread.h b/pthread.h
index 3a8be06..e5041e5 100644
--- a/pthread.h
+++ b/pthread.h
@@ -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 */