Why no pthread_mutexattr_settype()?

Phil Torre ptorre at zetron.com
Fri Mar 17 02:07:55 UTC 2006

I am porting some code that wants to use pthread_mutexattr_settype(),
and I see that RTEMS (4.6.0 at least) doesn't have one.  I put in a
hack to set the recursive field of the newly initialized mutexattr
struct to "1", and seem to get proper recursive locking behavior.

I see no way to make a POSIX mutex recursive using the normal API.
Am I missing it?  Is there no mutexattr_settype() because no one
ever needed one?  Or is making a POSIX mutex recursive in RTEMS bad
for some reason?  (CORE_mutex_Nesting_behaviors allows for it, so
it seems like it should be OK.)

Thank you,


Phil Torre                               phone: 425-820-6363 x234
Design Engineer                          email: ptorre at zetron.com
Switching Systems Group                    fax: 425-820-7031
Zetron, Inc.                               web: http://www.zetron.com


More information about the users mailing list