_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.
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.