![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Set the recursive attribute in mutex attribute object
#include <pthread.h> int pthread_mutexattr_setrecursive( pthread_mutexattr_t* attr, int recursive );
The default value of the recursive attribute is PTHREAD_RECURSIVE_DISABLE.
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The pthread_mutexattr_setrecursive() function sets the recursive attribute in a mutex attribute object, attr.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
pthread_mutexattr_getrecursive(), pthread_mutexattr_init()
![]() |
![]() |
![]() |
![]() |