summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/mutex.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-06 14:46:36 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-06 14:46:36 +0000
commit8cdf733f5003255ae7914f0a3b01f744f4add517 (patch)
tree5e21140343adc5ae9c3424765c6d3659f6ffb6d1 /cpukit/posix/src/mutex.c
parent2009-07-06 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-8cdf733f5003255ae7914f0a3b01f744f4add517.tar.bz2
2009-07-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/Makefile.am, posix/src/mutex.c, posix/src/mutexinit.c: Add initial support for the pthread mutex type attribute added by UNIX98. It can be normal, recursive, errorcheck or default. * posix/src/mutexattrgettype.c, posix/src/mutexattrsettype.c: New files.
Diffstat (limited to '')
-rw-r--r--cpukit/posix/src/mutex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/posix/src/mutex.c b/cpukit/posix/src/mutex.c
index ea71d6b277..6046b219f5 100644
--- a/cpukit/posix/src/mutex.c
+++ b/cpukit/posix/src/mutex.c
@@ -53,6 +53,9 @@ void _POSIX_Mutex_Manager_initialization(void)
default_attr->prio_ceiling = POSIX_SCHEDULER_MAXIMUM_PRIORITY;
default_attr->protocol = PTHREAD_PRIO_NONE;
default_attr->recursive = false;
+ #if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES)
+ default_attr->type = PTHREAD_MUTEX_DEFAULT;
+ #endif
/*
* Initialize the POSIX mutex object class information structure.