Gets the condition variable attribute pshared value.
pthread debug library (libpthdebug.a)
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.
| Item | Description |
|---|---|
| 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.
| Item | Description |
|---|---|
| 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 |