Module: xenomai-forge
Branch: next
Commit: f4adb1b5bac2c2e847229001b04e6bdb7406660a
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=f4adb1b5bac2c2e847229001b04e6bdb7406660a

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

psos: enable error checking for mutexes in debug mode

---

 lib/psos/pt.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/psos/pt.c b/lib/psos/pt.c
index c0bbf25..0189b74 100644
--- a/lib/psos/pt.c
+++ b/lib/psos/pt.c
@@ -185,6 +185,7 @@ u_long pt_create(const char *name,
        *nbuf = pt->nblks;
 
        __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, PTHREAD_PROCESS_PRIVATE));
        __RT(pthread_mutex_init(&pt->lock, &mattr));


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

Reply via email to