canceltype(3) - phpMan

pthread_setcanceltype (3) - set cancelability state and type
pthread_setcancelstate (3p) - set cancelability state