summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */