From 98a4a5029768be0c75d6d51fca4e73c98de4b7fa Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 31 May 2008 17:13:08 +0000 Subject: Add support for recursive mutexes git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@753 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/sched/pthread_mutexattrinit.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nuttx/sched/pthread_mutexattrinit.c') 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); -- cgit v1.2.3