icon Top 9 categories map      RocketAware > man pages >

pthread_join(3)

Tips: Browse or Search all pages for efficient awareness of more than 6000 of the most popular reusable and open source applications, functions, libraries, and FAQs.


The "RKT couplings" below include links to source code, updates, additional information, advice, FAQs, and overviews.


Home

Search all pages


Subjects

By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Math
Integer, Floating point, Matrix, Statistics, Boolean, ...

Processing
Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Communications
Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...

    

RocketLink!--> Man page versions:



PTHREAD_JOIN(3)           OpenBSD Programmer's Manual          PTHREAD_JOIN(3)

NAME
     pthread_join - wait for thread termination



SYNOPSIS
     #include <pthread.h>

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

DESCRIPTION
     The pthread_join() function suspends execution of the calling thread un-
     til the target thread terminates unless the target thread has already
     terminated.

     On return from a successful pthread_join() call with a non-NULL value_ptr
     argument, the value passed to pthread_exit() by the terminating thread is
     stored in the location referenced by value_ptr. When a pthread_join() re-
     turns successfully, the target thread has been terminated. The results of
     multiple simultaneous calls to pthread_join() specifying the same target
     thread are undefined. If the thread calling pthread_join() is cancelled,
     then the target thread is not detached.

     A thread that has exited but remains unjoined counts against
     [_POSIX_THREAD_THREADS_MAX].

RETURN VALUES
     If successful,  the pthread_join() function will return zero. Otherwise
     an error number will be returned to indicate the error.

ERRORS
     pthread_join() will fail if:

     [EINVAL]      The implementation has detected that the value specified by
                   thread does not refer to a joinable thread.

     [ESRCH]       No thread could be found corresponding to that specified by
                   the given thread ID, thread.

     [EDEADLK]     A deadlock was detected or the value of thread specifies
                   the calling thread.

SEE ALSO
     wait(2),  pthread_create(3)

STANDARDS
     pthread_join() conforms to ISO/IEC 9945-1 ANSI/IEEE (``POSIX'') Std
     1003.1 Second Edition 1996-07-12.

OpenBSD 2.6                      April 4, 1996                               1

Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY
SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts
Institute of Technology, Free Software Foundation, FreeBSD Inc., and others.



(Corrections, notes, and links courtesy of RocketAware.com)


[Detailed Topics]
FreeBSD Sources for pthread_join(3) functions


[Overview Topics]



RocketLink!--> Man page versions:






Rapid-Links: Search | About | Comments | Submit Path: RocketAware > man pages > pthread_join.3/
RocketAware.com is a service of Mib Software
Copyright 1999, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments