pthread_getlwpid_np(3T)pthread_getlwpid_np(3T)NAMEpthread_getlwpid_np() - get the Light Weight Process ID of a thread
SYNOPSISPARAMETERS
thread Thread whose Light Weight Process ID is required.
lwpid Pointer to the location where the Light Weight Process
ID of the thread is to be returned.
DESCRIPTION
Each thread is associated with a unique system wide Light Weight
Process ID (LWPID). stores the LWPID of the target thread in lwpid.
The function is applicable only for threads.
RETURN VALUE
Upon successful completion, returns zero. Otherwise, an error number
is returned to indicate the error (the errno variable is not set).
ERRORS
If any of the following problems occur, the function returns the correā
sponding error number:
The value specified by
thread does not refer to a thread, or the value lwpid
points to is an illegal address.
No thread could be found corresponding to
thread.
AUTHOR
was developed by HP.
SEE ALSOpthread_attr_init(3T), pthread_create(3T).
Pthread Library pthread_getlwpid_np(3T)