Sets the value of the pshared attribute of a condition attributes object.
Threads Library (libpthreads.a)
#include <pthread.h> int pthread_condattr_setpshared (attr, pshared) pthread_condattr_t *attr; int pshared;
The pthread_condattr_setpshared subroutine sets the value of the pshared attribute of the condition attributes object attr. This attribute specifies the process sharing of the condition variable created with this attributes object.
Upon successful completion, 0 is returned. Otherwise, an error code is returned.
The pthread_condattr_setpshared subroutine is unsuccessful if the following is true:
EINVAL | The attr or pshared parameters are not valid. |
The pthread_condattr_getpshared (pthread_condattr_getpshared Subroutine) subroutine, pthread_condattr_init or pthread_cond_init (pthread_condattr_destroy or pthread_condattr_init Subroutine) subroutine.
Advanced Attributes in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.
Threads Library Options in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.
Threads Library Quick Reference in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.