check_cancel
check_cancel(curthread, ucp);
check_cancel(curthread, NULL);
static void check_cancel(struct pthread *curthread, ucontext_t *ucp);