The text ec28f61fd84f, as FreeBSD 12.2-RELEASE shipped it.
set cancelability state
pthread_setcanceltype(3) on FreeBSD now