summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/pthread.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/pthread.h b/include/pthread.h
index 0c38271..dc8ebf0 100644
--- a/include/pthread.h
+++ b/include/pthread.h
@@ -164,11 +164,16 @@ struct pthread_once {
#endif
enum pthread_mutextype {
- MUTEX_TYPE_FAST = 1,
- MUTEX_TYPE_COUNTING_FAST = 2, /* Recursive */
+ PTHREAD_MUTEX_DEFAULT = 1,
+ PTHREAD_MUTEX_RECURSIVE = 2,
+ PTHREAD_MUTEX_NORMAL = 3,
+ PTHREAD_MUTEX_ERRORCHECK = 4,
MUTEX_TYPE_MAX
};
+#define MUTEX_TYPE_FAST PTHREAD_MUTEX_DEFAULT
+#define MUTEX_TYPE_COUNTING_FAST PTHREAD_MUTEX_RECURSIVE
+
/*
* Thread function prototype definitions:
*/
@@ -233,6 +238,7 @@ int pthread_mutexattr_setprotocol __P((pthread_mutexattr_t *,
int protocol));
int pthread_mutexattr_setpshared __P((pthread_mutexattr_t *,
int pshared));
+int pthread_mutexattr_settype __P((pthread_mutexattr_t *, int));
int pthread_mutex_destroy __P((pthread_mutex_t *));
int pthread_mutex_getprioceiling __P((pthread_mutex_t *));
int pthread_mutex_init __P((pthread_mutex_t *,
OpenPOWER on IntegriCloud