Returns the pthread signals pending, the signals blocked, the signals received, and awaited signals.
pthread debug library (libpthdebug.a)
#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)
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.
Item | Description |
---|---|
session | Session handle. |
pthread | Pthread handle |
sigsetp | Signal set buffer. |
If successful, these functions return PTHDB_SUCCESS. Otherwise, an error code is returned.
Item | Description |
---|---|
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. |