![]() |
![]() |
![]() |
![]() |
Set the process-shared attribute in mutex attribute object
#include <pthread.h>
int pthread_mutexattr_setpshared(
pthread_mutexattr_t* attr,
int pshared );
The default value of the process-shared attribute is PTHREAD_PROCESS_PRIVATE.
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The pthread_mutexattr_setpshared() function sets the process-shared attribute in a mutex attribute object, attr, to the value given by pshared.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
pthread_cond_init(), pthread_create(), pthread_mutexattr_getpshared(), pthread_mutexattr_getrecursive(), pthread_mutex_init(), pthread_mutexattr_setrecursive(), pthread_mutexattr_settype()
![]() |
![]() |
![]() |
![]() |