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

  man pages->IRIX man pages -> pthread_cancel (3p)              
Title
Content
Arch
Section
 

Contents


pthread_cancel(3P)					    pthread_cancel(3P)


NAME    [Toc]    [Back]

     pthread_cancel - request cancellation of a	thread

C SYNOPSIS    [Toc]    [Back]

     #include <pthread.h>

     int pthread_cancel(pthread_t thread);

DESCRIPTION    [Toc]    [Back]

     The pthread_cancel() function requests that the thread identified by
     thread be cancelled.  Cancellation	state [see pthread_setcancelstate()]
     and type [see pthread_setcanceltype()] determine whether the request is
     acted upon	immediately or at some time in the future; pthread_cancel()
     does not wait, it merely issues the request.  When	thread does act	on the
     request, it will terminate	as if it had called pthread_exit() with	a
     return status of PTHREAD_CANCELED.

DIAGNOSTICS    [Toc]    [Back]

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

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

SEE ALSO    [Toc]    [Back]

      
      
     pthread_setcancelstate(3P), pthread_setcanceltype(3P), pthread_exit(3P).


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
pthread_testcancel Tru64 Requests delivery of a pending cancellation request to the calling thread
tis_testcancel Tru64 Creates a cancellation point in the calling thread
pthread_cancel Tru64 Allows a thread to request a thread to terminate execution
pthread_setspecific Tru64 Sets the thread-specific data value associated with the specified key for the current thread
pthread_join Tru64 Causes the calling thread to wait for the termination of the specified thread
pthread_getname_np Tru64 Obtain the object name from the thread object of an existing thread
pfs_mountd.rpc HP-UX PFS mount request server
lpfence HP-UX start the LP request scheduler,
rpc.mountd HP-UX NFS mount request server
t_listen IRIX listen for a connect request
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service