SYNOPSIS
#include <pthread.h>
int pthread_setcanceltype(int type, int *oldtype);
DESCRIPTION
The
- PTHREAD_CANCEL_ASYNCHRONOUS
-
If cancellation is enabled, cancellation requests are acted on immediately.
- PTHREAD_CANCEL_DEFERRED
-
If cancellation is enabled, cancellation requests are acted on as soon as the thread reaches a cancellation point.
The default cancellation type is PTHREAD_CANCEL_DEFERRED.
Refer to
PARAMETERS
- type
-
Is the new cancellation type for the calling thread; one of the values specified in the DESCRIPTION.
- oldtype
-
Points to a location in which to return the current cancellation type for the calling thread. This parameter may be NULL if the current type is not required.
RETURN VALUES
On success,
CONFORMANCE
POSIX P1003.1 (1996)
MULTITHREAD SAFETY LEVEL
MT-safe, async-cancel-safe.
PORTING ISSUES
None.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
pthread_cancel() ,pthread_setcancelstate()
PTC MKS Toolkit 10.4 Documentation Build 39.