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

Technical Reference: Base Operating System and Extensions, Volume 1


pthdb_pthread_sigmask, pthdb_pthread_sigpend or pthdb_pthread_sigwait Subroutine

Purpose

Returns the pthread signals pending, the signals blocked, the signals received, and awaited signals.

Library

pthread debug library (libpthdebug.a)

Syntax


#include <sys/pthdebug.h>


int pthdb_pthread_sigmask (pthdb_session_t session,
pthdb_pthread_t pthread,
sigset_t * sigsetp)
int pthdb_pthread_sigpend (pthdb_session_t session,
pthdb_pthread_t pthread,
sigset_t * sigsetp)
int pthdb_pthread_sigwait (pthdb_session_t session,
pthdb_pthread_t pthread,
sigset_t * sigsetp)

Description

pthdb_pthread_sigmask reports the signals that the pthread has blocked.

pthdb_pthread_sigpend reports the signals that the pthread has pending.

pthdb_pthread_sigwait reports the signals that the pthread is waiting on.

Parameters


session Session handle.
pthread Pthread handle
sigsetp Signal set buffer.

Return Values

If successful, these functions return PTHDB_SUCCESS. Otherwise, an error code is returned.

Error Code


PTHDB_BAD_SESSION Invalid session handle.
PTHDB_BAD_PTHREAD Invalid pthread handle.
PTHDB_BAD_POINTER Invalid buffer pointer.
PTHDB_CALLBACK Debugger call back error.
PTHDB_INTERNAL Error in library.

Implementation Specifics

These subroutines are 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 ]