this requirement is tucked away in XSH 2.9.5 Thread Cancellation under
the heading Thread Cancellation Cleanup Handlers.
- pthread_t self = __pthread_self();
- self->canceldisable = 1;
- self->cancelasync = 0;
pthread_exit(PTHREAD_CANCELED);
}
pthread_exit(PTHREAD_CANCELED);
}
pthread_t self = __pthread_self();
sigset_t set;
pthread_t self = __pthread_self();
sigset_t set;
+ self->canceldisable = 1;
+ self->cancelasync = 0;
self->result = result;
while (self->cancelbuf) {
self->result = result;
while (self->cancelbuf) {