This is probably trickier than protecting against PTHREAD_CANCEL_DEFERRED, but I haven't given it much thought, yet. Maybe we don't protect, we just install a routine with pthread_cleanup_push() that prints and error message and aborts if an _ASYNCHRONOUS thread is cancelled?
This is probably trickier than protecting against PTHREAD_CANCEL_DEFERRED, but I haven't given it much thought, yet. Maybe we don't protect, we just install a routine with pthread_cleanup_push() that prints and error message and aborts if an _ASYNCHRONOUS thread is cancelled?