pthread_setcanceltype 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_setcancelstate(3T)			    pthread_setcancelstate(3T)

NAME
       pthread_setcancelstate(),  pthread_setcanceltype()  -  set and retrieve
       current thread's cancelability state or type.

SYNOPSIS
PARAMETERS
	      state	Value to which the cancelability state of the  calling
			thread is to be set.

	      oldstate	Pointer	 to  the  location where the old cancelability
			state of the calling thread will be returned.

	      type	Value to which the cancelability type of  the  calling
			thread is to be set.

	      oldtype	Pointer	 to  the  location where the old cancelability
			type of the calling thread will be returned.

DESCRIPTION
       atomically sets the calling thread's cancelability state to  the	 value
       in state and returns the previous cancelability state in oldstate.  The
       legal values for state are:

	      Disable cancelability for the calling thread.
		     Cancellation requests against the calling thread are held
		     pending.

	      Enable cancelability for the calling thread.
		     Cancellation  requests  against the calling thread may be
		     acted upon.  When a pending cancellation request will  be
		     acted upon depends on the thread's cancelability type.

       By  default,  a	thread's cancelability state is set to when it is cre‐
       ated.

       atomically sets the calling thread's cancelability type to the value in
       type and returns the previous cancelability type in oldtype.  The legal
       values for type are:

	      New or pending cancellation requests against the calling	thread
	      may be acted
		     upon  at  any  time  (if  cancellation is enabled for the
		     calling thread).

	      Cancellation requests for the calling thread  are	 held  pending
	      until a
		     cancellation point is reached.

       A thread's cancelability type is set to when it is created.

       If  a  thread's	cancelability  state  is  disabled, the setting of the
       thread's cancelability type has no immediate effect.  All  cancellation
       requests	 are  held  pending.   However,	 once cancelability is enabled
       again, the new type will be in effect.

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

ERRORS
       For each of the following conditions, if the condition is detected, the
       and functions return the corresponding error number:

	      [EINVAL]	     state contains an invalid value.

	      [EINVAL]	     type contains an invalid value.

NOTES
       Only functions that are async-cancel  safe  should  be  called  from  a
       thread that is asynchronously cancelable.

AUTHOR
       and were derived from the IEEE POSIX P1003.1c standard.

SEE ALSO
       pthread_exit(3T),	 pthread_join(3T),	   pthread_cancel(3T),
       pthread_cond_wait(3T), pthread_cond_timedwait(3T).

STANDARDS CONFORMANCE
				Pthread Library	    pthread_setcancelstate(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