*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> pthread_detach (3p)              


pthread_detach(3P)					    pthread_detach(3P)

NAME    [Toc]    [Back]

     pthread_detach - detach a thread

C SYNOPSIS    [Toc]    [Back]

     #include <pthread.h>

     int pthread_detach(pthread_t thread);

DESCRIPTION    [Toc]    [Back]

     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

DIAGNOSTICS    [Toc]    [Back]

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

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

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

SEE ALSO    [Toc]    [Back]

     pthread_join(3P), pthread_attr_setdetachstate(3P).

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
pthread_rad_detach Tru64 Detach a thread from its Resource Affinity Domain (libpthread library)
DEVICE_DETACH FreeBSD detach a device
usbd FreeBSD supervise USB attach/detach
shmdt Tru64 Detach a shared memory region
cpusetDetachPID IRIX detach a specific process from a cpuset
shmdt FreeBSD attach or detach shared memory
shmat FreeBSD attach or detach shared memory
fdetach IRIX detach a name from a STREAMS-based file descriptor
fdetach IRIX detach a name from a STREAMS-based file descriptor
usclosepollsema IRIX detach a file descriptor from a pollable semaphore
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service