summaryrefslogtreecommitdiff
path: root/src/thread/pthread_cancel.c
blob: c497dbe667d101054158d1399854f2da8469a5cc (plain) (blame)
1
2
3
4
5
6
7
#include "pthread_impl.h"

int pthread_cancel(pthread_t t)
{
	a_store(&t->cancel, 1);
	return pthread_kill(t, SIGCANCEL);
}