Gets the kernel thread associated with the pthread and the pthread associated with the kernel thread.
pthread debug library (libpthdebug.a)
pthdb_pthread_tid gets the kernel thread id associated with the pthread.
pthdb_tid_pthread is used to get the pthread associated with the kernel thread.
Item | Description |
---|---|
session | Session handle. |
pthread | Pthread handle |
pthreadp | Pointer to pthread handle |
tid | Kernel thread id |
tidp | Pointer to kernel thread id |
If successful, these functions return PTHDB_SUCCESS. Otherwise, an error code is returned.
Item | Description |
---|---|
PTHDB_BAD_PTHREAD | Invalid pthread handle. |
PTHDB_BAD_SESSION | Invalid session handle. |
PTHDB_BAD_TID | Invalid tid. |
PTHDB_CALLBACK | Debugger call back error. |
PTHDB_INTERNAL | Error in library. |
PTHDB_INVALID_TID | Empty list or the end of a list. |