_lwp_self(2)


_lwp_self -- get current LWP's identifier

Synopsis

   #include <sys/types.h>
   #include <sys/lwp.h>
   

lwpid_t _lwp_self(void);

Description

_lwp_self returns the identifier of the current lightweight process (LWP).

Return values

_lwp_self returns the internal-to-the process identifier for the calling LWP.

Errors

_lwp_self always succeeds.

References

_lwp_create(2), getcontext(2)

Notices

Lightweight processes (LWPs) are internal interfaces and are subject to change. Their use should be avoided.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004