mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Don't declare __timer_helper_thread. Declare __start_helper_thread, __helper_once, and __helper_tid. (struct timer): Remove th and bar field.
This commit is contained in:
@ -20,13 +20,20 @@
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
|
||||||
/* Nonzero if the system calls are not available. */
|
/* Nonzero if the system calls are not available. */
|
||||||
extern int __no_posix_timers attribute_hidden;
|
extern int __no_posix_timers attribute_hidden;
|
||||||
|
|
||||||
/* Helper function to implement SIGEV_THREAD. */
|
/* Callback to start helper thread. */
|
||||||
extern void *__timer_helper_thread (void *arg) attribute_hidden;
|
extern void __start_helper_thread (void) attribute_hidden;
|
||||||
|
|
||||||
|
/* Control variable for helper thread creation. */
|
||||||
|
extern pthread_once_t __helper_once attribute_hidden;
|
||||||
|
|
||||||
|
/* TID of the helper thread. */
|
||||||
|
extern pid_t __helper_tid attribute_hidden;
|
||||||
|
|
||||||
|
|
||||||
/* Type of timers in the kernel. */
|
/* Type of timers in the kernel. */
|
||||||
@ -50,13 +57,4 @@ struct timer
|
|||||||
void (*thrfunc) (sigval_t);
|
void (*thrfunc) (sigval_t);
|
||||||
sigval_t sival;
|
sigval_t sival;
|
||||||
pthread_attr_t attr;
|
pthread_attr_t attr;
|
||||||
|
|
||||||
/* Id of the helper thread. */
|
|
||||||
pthread_t th;
|
|
||||||
|
|
||||||
/* Barrier used for synchronization. */
|
|
||||||
pthread_barrier_t bar;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* This is the signal the kernel will send to the helper thread. */
|
|
||||||
#define TIMER_SIG 40 /* some RT signal */
|
|
||||||
|
Reference in New Issue
Block a user