TD_MAP_PTH2THR(3)

NAME
td_map_pth2thr - convert a pthread_t to a thread handle

LIBRARY
libpthread_dbg

SYNOPSIS
#include <pthread_dbg.h>
int
td_thr_getname(td_proc_t *proc, pthread_t thread, td_thread_t **threadp);

DESCRIPTION
The td_map_pth2thr function converts a | POSIX thread thread to a pthread_dbg(3) specific thread passed in the threadp argument.

RETURN VALUES
If successful, the td_map_pth2thr function will return TD_ERR_OK. Otherwise an error number will be returned to indicate failure as described in pthread_dbg(3).

SEE ALSO
pthread(3), pthread_dbg(3)

HISTORY
The td_map_pth2thr function first appeared in NetBSD 2.0.

AUTHORS
-nosplit Nathan J. Williams <nathanw@NetBSD.org>

This manual page was written by Kamil Rytarowski <kamil@NetBSD.org>.