timer threads should sleep and stay asleep... a long time
[musl] / src / time / timer_gettime.c
1 #include <time.h>
2 #include "pthread_impl.h"
3
4 int timer_gettime(timer_t t, struct itimerspec *val)
5 {
6         if ((uintptr_t)t & 1) t = (void *)((unsigned long)t / 2);
7         else t = ((pthread_t)t)->result;
8         return syscall(SYS_timer_gettime, (long)t, val);
9 }