Function pthread_setcancelstate

fn pthread_setcancelstate()

See the module comment.