Reports the value associated with a pthread's specific data key.
pthread debug library (libpthdebug.a)
#include <sys/pthdebug.h> void *pthdb_pthread_specific(pthdb_session_t session, pthdb_pthread_t pthread, pthdb_key_t key, pthdb_addr_t *specificp)
Each process has active pthread specific data keys. Each active pthread specific data key is in use by one or more pthreads. Each pthread can have its own value associated with each pthread specific data key. The pthdb_pthread_specific function provide access to those values.
pthdb_pthread_specific reports the specific data value for the pthread and key combination.
session | The session handle. |
pthread | The pthread handle. |
key | The key. |
specificp | Specific data value buffer.a |
If successful, pthdb_pthread_specific returns PTHDB_SUCCESS. Otherwise, an error code is returned.
PTHDB_BAD_SESSION | Invalid session handle. |
PTHDB_BAD_PTHREAD | Invalid pthread handle. |
PTHDB_BAD_KEY | Invalid key. |
PTHDB_BAD_POINTER | Invalid buffer pointer. |
PTHDB_CALLBACK | Debugger call back error. |
PTHDB_INTERNAL | Error in library. |
This subroutine is part of the Base Operating System (BOS) Runtime.
The pthdebug.h file.