summaryrefslogtreecommitdiff
path: root/nuttx/sched/pthread_mutexattrinit.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-05-31 17:13:08 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-05-31 17:13:08 +0000
commit98a4a5029768be0c75d6d51fca4e73c98de4b7fa (patch)
tree75df8870063f23c8cb7d4d322575b6b2c7021065 /nuttx/sched/pthread_mutexattrinit.c
parent52bbc6ee28f2ae7faef6a430e86c881376ff3bfb (diff)
downloadpx4-nuttx-98a4a5029768be0c75d6d51fca4e73c98de4b7fa.tar.gz
px4-nuttx-98a4a5029768be0c75d6d51fca4e73c98de4b7fa.tar.bz2
px4-nuttx-98a4a5029768be0c75d6d51fca4e73c98de4b7fa.zip
Add support for recursive mutexes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@753 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/pthread_mutexattrinit.c')
-rw-r--r--nuttx/sched/pthread_mutexattrinit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nuttx/sched/pthread_mutexattrinit.c b/nuttx/sched/pthread_mutexattrinit.c
index 85b1e953d..b023bee3e 100644
--- a/nuttx/sched/pthread_mutexattrinit.c
+++ b/nuttx/sched/pthread_mutexattrinit.c
@@ -96,6 +96,9 @@ int pthread_mutexattr_init(FAR pthread_mutexattr_t *attr)
else
{
attr->pshared = 0;
+#ifdef CONFIG_MUTEX_TYPES
+ attr->type = PTHREAD_MUTEX_DEFAULT;
+#endif
}
sdbg("Returning %d\n", ret);