Returns the value of the pshared attribute of a condition attributes object.
Threads Library (libpthreads.a)
#include <pthread.h> int pthread_condattr_getpshared (attr, pshared) const pthread_condattr_t *attr; int *pshared;
The pthread_condattr_getpshared subroutine returns the value of the pshared attribute of the condition attribute object attr. This attribute specifies the process sharing of the condition variable created with this attributes object. It may have one of the following values:
attr | Specifies the condition attributes object. |
pshared | Points to where the pshared attribute value will be stored. |
Upon successful completion, the value of the pshared attribute is returned via the pshared parameter, and 0 is returned. Otherwise, an error code is returned.
The pthread_condattr_getpshared subroutine is unsuccessful if the following is true:
EINVAL | The attr parameter is not valid. |
ENOSYS | The process sharing POSIX option is not implemented. |
The pthread_condattr_setpshared (pthread_condattr_setpshared Subroutine) subroutine, pthread_condattr_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.