man.bsd.lv manual page server

Manual Page Search Parameters

LWP_GETTID(2) System Calls Manual LWP_GETTID(2)

lwp_gettidget calling lwp identification

library “libc”

#include <sys/lwp.h>

lwpid_t
lwp_gettid(void);

The () function returns the lwp id of the calling lwp.

The lwp_gettid() function is always successful and no return value is reserved to indicate an error.

getpid(2), getppid(2), lwp_create(2)

The lwp_gettid() function first appeared in DragonFly 1.9.

March 12, 2007 DragonFly-5.6.1