DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

_lwp_self(S)


_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(S), getcontext(S)

Notices

Lightweight processes (LWPs) are internal interfaces and are subject to change. Their use should be avoided.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005