Standards / Extensions | C or C++ | Dependencies |
---|---|---|
Language Environment Extension |
both | z/OS® V1R2 |
#define _OPEN_THREADS
#define _OPEN_SYS_MUTEX_EXT
#include <pthread.h>
int pthread_condattr_getpshared(const pthread_condattr_t *attr,
int *pshared);
#define _UNIX03_THREADS
#include <pthread.h>
int pthread_condattr_getpshared(const pthread_condattr_t * __restrict__attr,
int * __restrict__pshared);
Gets the attribute pshared for the condition variable attribute object attr. By using attr, you can determine its process-shared value for a condition variable.
Special behavior for Single UNIX Specification, Version 3: If unsuccessful, pthread_condattr_getpshared() returns an error number to indicate the error.