_lwp_self.2 (2010 09)

_
_lwp_self(2) _lwp_self(2)
NAME
_lwp_self() - get current LWP’s (Lightweight Process) identifier
SYNOPSIS
cc [ flag... ] file... -lpthread
#include <sys/lwp_id.h>
lwpid_t _lwp_self(void);
DESCRIPTION
The _lwp_self() function returns the identifier of the current LWP.
RETURN VALUE
The
_lwp_self() function returns the identifier of the current LWP.
ERRORS
No errors are returned. This function always succeeds.
WARNINGS
Lightweight processes (LWPs) are internal interfaces and subject to change. The POSIX pthread inter-
faces should be used by multi-threaded applications. If the POSIX pthread interfaces and lightweight
process interfaces are used in the same application, undefined behavior will result.
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (2 pages)