workaround for gcc's optimizer breaking dynamic symbol resolution
[musl] / src / time / timer_delete.c
1 #include <time.h>
2 #include "pthread_impl.h"
3
4 int timer_delete(timer_t t)
5 {
6         if ((uintptr_t)t >= 0x100000) {
7                 pthread_t td = t;
8                 td->delete_timer = 1;
9                 __wake(&td->delete_timer, 1, 1);
10                 return 0;
11         }
12         return __syscall(SYS_timer_delete, (long)t);
13 }