diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2016-05-17 09:56:22 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2016-05-17 09:56:22 +0000 |
| commit | 2a339d9e3dc129f0b0b79c2cb8d2bb0386fb0f5f (patch) | |
| tree | d626a38beb7329b5a3aa09877b11a5ec03a6eb38 /include | |
| parent | 5105a92c4945e74f7d7c5eb97969d3e7da8fea9b (diff) | |
Notes
Diffstat (limited to 'include')
| -rw-r--r-- | include/pthread.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/pthread.h b/include/pthread.h index 8078bcb69828b..40dca7a4907af 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -135,6 +135,9 @@ enum pthread_mutextype { #define PTHREAD_MUTEX_DEFAULT PTHREAD_MUTEX_ERRORCHECK +#define PTHREAD_MUTEX_STALLED 0 +#define PTHREAD_MUTEX_ROBUST 1 + struct _pthread_cleanup_info { __uintptr_t pthread_cleanup_pad[8]; }; @@ -229,6 +232,8 @@ int pthread_mutexattr_settype(pthread_mutexattr_t *, int) __nonnull(1); int pthread_mutexattr_setpshared(pthread_mutexattr_t *, int) __nonnull(1); +int pthread_mutex_consistent(pthread_mutex_t *__mutex) + __nonnull(1) __requires_exclusive(*__mutex); int pthread_mutex_destroy(pthread_mutex_t *__mutex) __nonnull(1) __requires_unlocked(*__mutex); int pthread_mutex_init(pthread_mutex_t *__mutex, @@ -310,6 +315,11 @@ int pthread_mutex_setprioceiling(pthread_mutex_t *, int, int *); int pthread_mutexattr_getprotocol(pthread_mutexattr_t *, int *); int pthread_mutexattr_setprotocol(pthread_mutexattr_t *, int); +int pthread_mutexattr_getrobust(pthread_mutexattr_t *__restrict, + int *__restrict) __nonnull_all; +int pthread_mutexattr_setrobust(pthread_mutexattr_t *, int) + __nonnull(1); + int pthread_attr_getinheritsched(const pthread_attr_t *, int *); int pthread_attr_getschedparam(const pthread_attr_t *, struct sched_param *) __nonnull_all; |
