DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

_lwp_exit(2)


_lwp_exit -- terminate the calling LWP

Synopsis

   #include <sys/lwp.h>
   

void _lwp_exit(void);

Description

_lwp_exit terminates execution of the calling lightweight process (LWP). If the caller is the last LWP associated with the process, the process is terminated as well. The exit status in this case is not specified.

If the LWP was not created with the LWP_DETACHED flag set, the following behavior occurs:

If the LWP was created with the LWP_DETACHED flag set, this LWP cannot be waited for, and no record is retained.

If two or more LWPs wait explicitly for the same LWP then one will succeed and the others will get error ESRCH.

Return values

_lwp_exit does not return a value.

Errors

None.

Usage

Exit status is not used for LWPs.

References

_lwp_wait(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