Sets the value of the pshared attribute of a condition attributes object.
Threads Library (libpthreads.a)
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.
Note: The pthread.h header file must be the first included file of each source file using the threads library. Otherwise, the -D_THREAD_SAFE compilation flag should be used, or the cc_r compiler used. In this case, the flag is automatically set.
|attr||Specifies the condition attributes object.|
|pshared|| Specifies the process sharing to set. It must have one of the following values:
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.|
This subroutine is part of the Base Operating System (BOS) Runtime.
The pthread_condattr_getpshared subroutine, pthread_condattr_init subroutine, pthread_cond_init subroutine.
Advanced Attributes in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.
Threads Library Options in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.
Threads Library Quick Reference in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.