Threads Debugging Library Functions tdtamapid2thr(3CDB)
NAME
tdtamapid2thr, tdtamaplwp2thr - convert a thread ID or
LWP ID to a thread handle
SYNOPSIS
cc [ flag... ] file... -lcdb [ library... ]
#include
#include
tdtamapid2thr(const tdthragentt *tap, threadt tid,tdthrhandlet *thp);
tdtamaplwp2thr(const tdthragentt *tap, lwpidt lwpid,tdthrhandlet *thp);
DESCRIPTION
The tdtamapid2thr() function produces the tdthrhandlet
thread handle that corresponds to a particular thread ID, as
returned by thrcreate(3C) or thrself(3C). The thread han-
dle is returned in *thp.
The tdtamaplwp2thr() function produces the tdthrhandlet
thread handle for the thread that is currently executing on
the light weight process ( LWP) and has an ID of lwpid.
RETURN VALUES
TDOK The call completed successfully.
TDBADTA An invalid internal process handle was passed
in.
TDBADPH There is a NUL external process handle associ-
ated with this internal process handle.
TDBER A call to one of the imported interface routines
failed.
TDNOTHR Either there is no thread with the given thread
ID ( tdtamapid2thr) or no thread is currently
executing on the given LWP ( tdtamaplwp2thr).
TDER The call did not complete successfully.
ATRIBUTES
SunOS 5.11 Last change: 20 Oct 1998 1
Threads Debugging Library Functions tdtamapid2thr(3CDB)
See attributes(5) for description of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
MT-Level Safe
SEE ALSO
libcdb(3LIB), thrcreate(3C), thrself(3C), attributes(5)
SunOS 5.11 Last change: 20 Oct 1998 2
|