Purpose
This function is used to set the process-shared attribute of the condition
variable attributes object identified by the argument cattr.
Its process-shared attribute will be set according to the argument
pshared.
Class
Function
Argument Type and Attributes
- cattr
- TYPE(f_pthread_condattr_t), INTENT(INOUT)
- pshared
- is an INTEGER(4), INTENT(IN) argument that must contain one of the
following values:
- PTHREAD_PROCESS_SHARED
- Specifies that the condition variable can be used by any thread that has
access to the memory where it is allocated, even if these threads belong to
different processes.
- PTHREAD_PROCESS_PRIVATE
- Specifies that the condition variable shall only be used by threads within
the same process as the thread that created it. This is the default
setting of the attribute.
Result Type and Attributes
INTEGER(4)
Result Value
On successful completion, this function returns 0. Otherwise,
this function returns the following error.
- EINVAL
- The value specified by the argument cattr or pshared is
invalid.
