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 the mutex attribute object attr to the value given by recursive.
| Safety: | |
|---|---|
| Cancellation point | No | 
| Interrupt handler | No | 
| Signal handler | Yes | 
| Thread | Yes |