diff options
Diffstat (limited to 'include/pthread/pthread.h')
-rw-r--r-- | include/pthread/pthread.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/pthread/pthread.h b/include/pthread/pthread.h index 350a673..ad34e5d 100644 --- a/include/pthread/pthread.h +++ b/include/pthread/pthread.h @@ -271,6 +271,11 @@ extern pthread_t pthread_self (void) __THROW; #define PTHREAD_MUTEX_FAST_NP PTHREAD_MUTEX_TIMED_NP #endif +#ifdef __USE_XOPEN2K +#define PTHREAD_MUTEX_STALLED __PTHREAD_MUTEX_STALLED +#define PTHREAD_MUTEX_ROBUST __PTHREAD_MUTEX_ROBUST +#endif + #include <bits/mutex-attr.h> /* Initialize the mutex attribute object in *ATTR to the default @@ -399,6 +404,18 @@ extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex, __THROW __nonnull ((1, 3)); #endif +#ifdef __USE_XOPEN2K8 + +/* Declare the state protected by robust mutex MTXP as consistent. */ +extern int pthread_mutex_consistent (pthread_mutex_t *__mtxp) + __THROW __nonnull ((1)); + +# ifdef __USE_GNU +extern int pthread_mutex_consistent_np (pthread_mutex_t *__mtxp) + __THROW __nonnull ((1)); +# endif +#endif + /* Condition attributes. */ |