Gets the condition variable attribute pshared value.
pthread debug library (libpthdebug.a)
#include <sys/pthdebug.h>
int pthdb_condattr_pshared (pthdb_session_t session,
pthdb_condattr_t condattr,
pthdb_pshared_t * psharedp)
int pthdb_condattr_addr (pthdb_session_t session,
pthdb_condattr_t condattr,
pthdb_addr_t * addrp)
The pthdb_condattr_pshared function is used to get the condition variable attribute process shared value. The pshared value can be PSH_SHARED, PSH_PRIVATE, or PSH_NOTSUP.
The pthdb_condattr_addr function reports the address of the pthread_condattr_t.
addrp | Pointer to the address of the pthread_condattr_t. |
condattr | Condition variable attribute handle |
psharedp | Pointer to the pshared value. |
session | Session handle. |
If successful this function returns PTHDB_SUCCESS. Otherwise, an error code is returned.
PTHDB_BAD_CONDATTR | Invalid condition variable attribute handle. |
PTHDB_BAD_SESSION | Invalid session handle. |
PTHDB_CALLBACK | Debugger call back error. |
PTHDB_INTERNAL | Error in library. |
PTHDB_POINTER | Invalid pointer |
This subroutine is part of the Base Operating System (BOS) Runtime.
The pthdebug.h file.
The pthread.h file.