diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2008-09-26 16:15:50 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2008-09-26 16:15:50 +0000 |
commit | 610eefefddbf3537694b9ee43296a576e5e11b72 (patch) | |
tree | d8e0a4d843a997f69750a103640d185b2da21a9e /newlib/libc/include/pthread.h | |
parent | 3a3affe5f9e7b797d96778e9f367c94403a0a2d9 (diff) | |
download | cygnal-610eefefddbf3537694b9ee43296a576e5e11b72.tar.gz cygnal-610eefefddbf3537694b9ee43296a576e5e11b72.tar.bz2 cygnal-610eefefddbf3537694b9ee43296a576e5e11b72.zip |
2008-09-25 Raphael Derossa Pereira <raphaelpereira@gmail.com>
* libc/include/pthread.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
new pthread_mutexattr_gettype and pthread_mutexattr_settype
prototypes.
* libc/include/sys/types.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add
new mutex type values.
(pthread_mutexattr_t)[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add type
field.
Diffstat (limited to 'newlib/libc/include/pthread.h')
-rw-r--r-- | newlib/libc/include/pthread.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/newlib/libc/include/pthread.h b/newlib/libc/include/pthread.h index 1dc20bcc8..fccc14d70 100644 --- a/newlib/libc/include/pthread.h +++ b/newlib/libc/include/pthread.h @@ -57,6 +57,17 @@ int _EXFUN(pthread_mutexattr_getpshared, int _EXFUN(pthread_mutexattr_setpshared, (pthread_mutexattr_t *__attr, int __pshared)); +#if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES) + +/* Single UNIX Specification 2 Mutex Attributes types */ + +int _EXFUN(pthread_mutexattr_gettype, + (_CONST pthread_mutexattr_t *__attr, int *__kind)); +int _EXFUN(pthread_mutexattr_settype, + (pthread_mutexattr_t *__attr, int __kind)); + +#endif + /* Initializing and Destroying a Mutex, P1003.1c/Draft 10, p. 87 */ int _EXFUN(pthread_mutex_init, |