Module: xenomai-forge
Branch: rtdm-api-waitqueues
Commit: 08287e8cc7eadda788f2380c41b9ab31bb52b01a
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=08287e8cc7eadda788f2380c41b9ab31bb52b01a

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Apr 16 16:56:22 2014 +0200

vxworks: enable error checking for mutexes in debug mode

---

 lib/vxworks/memPartLib.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/vxworks/memPartLib.c b/lib/vxworks/memPartLib.c
index 9d4d2c3..10d6c2f 100644
--- a/lib/vxworks/memPartLib.c
+++ b/lib/vxworks/memPartLib.c
@@ -63,6 +63,7 @@ PART_ID memPartCreate(char *pPool, unsigned int poolSize)
        }
 
        __RT(pthread_mutexattr_init(&mattr));
+       __RT(pthread_mutexattr_settype(&mattr, mutex_type_attribute));
        __RT(pthread_mutexattr_setprotocol(&mattr, PTHREAD_PRIO_INHERIT));
        __RT(pthread_mutexattr_setpshared(&mattr, mutex_scope_attribute));
        __RT(pthread_mutex_init(&mp->lock, &mattr));


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to