This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Set the process-shared attribute in a condition variable attribute object
#include <pthread.h> int pthread_condattr_setpshared( pthread_condattr_t* attr, int pshared );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The pthread_condattr_setpshared() function sets the process-shared attribute in a condition variable attribute object, attr to the value given by pshared.
The default value of the process-shared attribute is PTHREAD_PROCESS_PRIVATE.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
pthread_condattr_init(), pthread_condattr_getpshared(), pthread_create(), pthread_mutex_init(), pthread_cond_init()