pthread_detach man page on IRIX

Printed from http://www.polarhome.com/service/man/?qf=pthread_detach&af=0&tf=2&of=IRIX



pthread_detach(3P)					    pthread_detach(3P)

NAME
     pthread_detach - detach a thread

C SYNOPSIS
     #include <pthread.h>

     int pthread_detach(pthread_t thread);

DESCRIPTION
     The pthread_detach() function causes the thread identified by thread to
     be detached.  This means that storage created by the library on behalf of
     the thread will be reclaimed when the thread terminates.  A detached
     thread cannot be the target of pthread_join().

     A thread can be created in detached state using
     pthread_attr_setdetachstate().  It can also be implicitly detached using
     pthread_join().

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

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

     [EINVAL]	    The thread identified by thread is already detached.

SEE ALSO
     pthread_join(3P), pthread_attr_setdetachstate(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