streamline mutex unlock to remove a useless branch, use a_store to unlock
[musl] / src / thread / pthread_cancel.c
1 #include "pthread_impl.h"
2
3 int pthread_cancel(pthread_t t)
4 {
5         t->cancel = 1;
6         return pthread_kill(t, SIGCANCEL);
7 }