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

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