pthread_condattr_getpshared()

Updated: April 19, 2023

Get the process-shared attribute from a condition variable attribute object

Synopsis:

#include <pthread.h>

int pthread_condattr_getpshared( 
            const pthread_condattr_t* attr,
            int* pshared );

Arguments:

attr
A pointer to the pthread_condattr_t object from which you want to get the attribute.
pshared
A pointer to a location where the function can store the process-shared attribute.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The pthread_condattr_getpshared() function stores, in the memory pointed to by pshared, the process-shared attribute from a condition variable attribute object, attr. The possible values are:

Returns:

EOK
Success.
EINVAL
Invalid condition variable attribute object specified by attr.

Classification:

POSIX 1003.1 TSH

Safety:  
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes