[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1


pthdb_condattr_pshared, or pthdb_condattr_addr Subroutine

Purpose

Gets the condition variable attribute pshared value.

Library

pthread debug library (libpthdebug.a)

Syntax


#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)

Description

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.

Parameters


addrp Pointer to the address of the pthread_condattr_t.
condattr Condition variable attribute handle
psharedp Pointer to the pshared value.
session Session handle.

Return Values

If successful this function returns PTHDB_SUCCESS. Otherwise, an error code is returned.

Error Codes


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

Implementation Specifics

This subroutine is part of the Base Operating System (BOS) Runtime.

Related Information

The pthdebug.h file.

The pthread.h file.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]