Purpose
This function can be used to set the thread's cancelability state. The new state will be set according to the argument state. The old state will be returned in the argument oldstate.
Class
Function
Argument Type and Attributes
Must contain one of the following:
On return from this function, oldstate will contain one of the following values:
Result Type and Attributes
INTEGER(4)
Result Value
On successful completion, this function returns 0. Otherwise, this function returns the following error.