canceltype(category22-scripting.html) - phpMan

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