LWP_GETTID(2) BSD System Calls Manual LWP_GETTID(2)NAME
lwp_gettid — get calling lwp identification
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <unistd.h>
lwpid_t
lwp_gettid(void);
DESCRIPTION
The lwp_gettid() function returns the lwp id of the calling lwp.
ERRORS
The lwp_gettid() function is always successful and no return value is
reserved to indicate an error.
SEE ALSOgetpid(2), getppid(2), lwp_create(2)HISTORY
The lwp_gettid() function first appeared in DragonFly 1.9.
BSD March 12, 2007 BSD