blob: d7c7670f3e2cd60a2a1ae8fdbee16d39b5b67daf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <time.h>
#include "pthread_impl.h"
int timer_delete(timer_t t)
{
if (t->thread) pthread_cancel(t->thread);
else {
if (t->timerid >= 0) __syscall(SYS_timer_delete, t->timerid);
free(t);
}
return 0;
}
|