pthread_join man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



pthread_join(3P)					      pthread_join(3P)

NAME
     pthread_join - wait for thread termination

C SYNOPSIS
     #include <pthread.h>

     int pthread_join(pthread_t thread, void **retval);

DESCRIPTION
     The pthread_join() function waits for the thread identified by thread to
     terminate.	 If retval is not zero, then it will be set to the exit value
     of the thread [see pthread_exit(), pthread_cancel()].  Only one thread
     may wait for another at one time.

     A detached thread [see pthread_detach()] may not be joined.  A successful
     join will automatically detach the target thread.	However,
     pthread_join() is a cancellation point and if the joiner is cancelled,
     the target thread remains undetached and can be the target of another
     pthread_join().  If a thread becomes detached after another thread is
     waiting for it, the waiting thread is awoken and returns an error.

DIAGNOSTICS
     On success pthread_join() returns zero; otherwise an error number is
     returned:

     [ESRCH]	    The thread parameter does not identify a thread.

     [EINVAL]	    The thread identified by thread is not joinable (it is
		    detached).

     [EDEADLK]	    The thread identified by thread is the calling thread.

SEE ALSO
     pthread_exit(3P), pthread_cancel(3P), pthread_detach(3P).

									Page 1

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net