| 588 | } |
| 589 | |
| 590 | static void pthread_testcancel(void) |
| 591 | { |
| 592 | if (_pthread_cancelling) |
| 593 | { |
| 594 | pthread_t t = pthread_self(); |
| 595 | |
| 596 | if (t->cancelled && (t->p_state & PTHREAD_CANCEL_ENABLE)) |
| 597 | { |
| 598 | _pthread_invoke_cancel(); |
| 599 | } |
| 600 | } |
| 601 | } |
| 602 | |
| 603 | |
| 604 | static int pthread_cancel(pthread_t t) |
no test coverage detected