LWP_GETTID(2)

NAME
lwp_gettid - get calling lwp identification

LIBRARY
libc

SYNOPSIS
#include <sys/lwp.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 ALSO
getpid(2), getppid(2), lwp_create(2)

HISTORY
The lwp_gettid() function first appeared in DragonFly 1.9.