pthread_detach man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

pthread_detach(3T)					    pthread_detach(3T)

NAME
       pthread_detach()	 -  mark a thread as detached to reclaim its resources
       when it terminates

SYNOPSIS
PARAMETERS
	      thread	Thread whose resources are to be reclaimed immediately
			when it terminates.

DESCRIPTION
       is  used	 to  detach  the  thread  thread.  When thread terminates, its
       resources will automatically be reclaimed by the system.	 If thread has
       already	terminated,  causes the resources of thread to be reclaimed by
       the system.

       does not cause thread to terminate.

       Once a detached thread has terminated,  its  resources,	including  the
       thread ID, may be reused by the system. The return status of a detached
       thread is lost when the thread terminates.

       Calling this function multiple times for the  same  thread  results  in
       undefined behavior.

RETURN VALUE
       Upon successful completion, returns zero. Otherwise, an error number is
       returned to indicate the error (the variable is not set).

ERRORS
       If any of the following occur, the function returns  the	 corresponding
       error number:

	      [EINVAL]	     thread does not refer to a joinable thread.

	      [ESRCH]	     No thread could be found corresponding to thread.

AUTHOR
       was derived from the IEEE POSIX P1003.1c standard.

SEE ALSO
       pthread_create(3T), pthread_join(3T), wait(2).

STANDARDS CONFORMANCE
				Pthread Library		    pthread_detach(3T)
[top]

List of man pages available for HP-UX

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