blob: b5f8ca196a753ee890f3197797555b56098edd54 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <time.h>
#include "pthread_impl.h"
int timer_delete(timer_t t)
{
if ((uintptr_t)t >= 0x100000) {
pthread_t td = t;
td->delete_timer = 1;
__wake(&td->delete_timer, 1, 1);
return 0;
}
return __syscall(SYS_timer_delete, (long)t);
}
|