|
NAMEthr_exit —
terminate current thread
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <sys/thr.h>
void
DESCRIPTIONThis function is intended for implementing threading. Normal
applications should call
pthread_exit(3)
instead.
The If the state argument is not
Attempts to terminate the last thread in the process are silently ignored. Use _exit(2) syscall to terminate the process. RETURN VALUESThe function does not return a value. A return from the function indicates that the calling thread was the last one in the process.SEE ALSO_exit(2), _umtx_op(2), thr_kill(2), thr_kill2(2), thr_new(2), thr_self(2), thr_set_name(2), pthread_exit(3)STANDARDSThethr_exit () system call is non-standard and is used
by 1:1 Threading Library (libthr, -lthr) to implement
IEEE Std 1003.1-2001 (“POSIX.1”)
pthread(3)
functionality.
HISTORYThethr_exit () system call first appeared in
FreeBSD 5.2.
Visit the GSP FreeBSD Man Page Interface. |