PTHREAD_CANCEL_ASYNCHRONOUS
(void) pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
(void) pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
(void) pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
case PTHREAD_CANCEL_ASYNCHRONOUS:
*oldtype = PTHREAD_CANCEL_ASYNCHRONOUS;