12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #include <features.h>
- #include <setjmp.h>
- #include <signal.h>
- #include <sys/types.h>
- #ifdef __UCLIBC_HAS_THREADS__
- #include <pthread.h>
- #endif
- #ifdef __UCLIBC_HAS_THREADS_NATIVE__
- extern int __no_posix_timers attribute_hidden;
- extern void __start_helper_thread (void) attribute_hidden;
- extern pthread_once_t __helper_once attribute_hidden;
- extern pid_t __helper_tid attribute_hidden;
- extern struct timer *__active_timer_sigev_thread attribute_hidden;
- extern pthread_mutex_t __active_timer_sigev_thread_lock attribute_hidden;
- #endif
- typedef int kernel_timer_t;
- struct timer {
-
- int sigev_notify;
-
- kernel_timer_t ktimerid;
-
-
- void (*thrfunc) (sigval_t);
- sigval_t sival;
- #ifdef __UCLIBC_HAS_THREADS__
- pthread_attr_t attr;
- #endif
-
- struct timer *next;
- };
|