thr_exit(3scl)thr_exit(3scl)NAMEthr_exit - Terminates the calling thread.
LIBRARY
SCL Threads Library (libthread.so)
SYNOPSIS
#include <thread.h>
void thr_exit(
void *value_ptr );
PARAMETERS
Return-value from thread which if this thread is joinable can be
obtained by another thread calling thr_join(3scl).
DESCRIPTION
This routine terminates the calling thread. If this thread is joinable
(non-detached), then the value_ptr argument is stored as this thread's
return-value, which another thread can obtain by calling thr_join(3scl)
and specifying the terminating thread ID.
Note that if the main thread does not terminate by calling
thr_exit(3scl), then its termination will terminate the whole process.
SCL IMPLEMENTATION NOTESthr_exit(3scl) is implemented by calling pthread_exit(3).
RETURN VALUES
None. The thr_exit(3scl) function terminates the thread, and so cannot
return to its caller.
ERRORS
None.
RELATED INFORMATION
Functions: pthread_exit(3), scl_intro(3scl), scl_thread_intro(3scl),
thr_join(3scl)
Manuals: Solaris Compatibility Libraries User's Guide
thr_exit(3scl)