4.104.114.84.95
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | */ |
---|
4 | |
---|
5 | #ifndef __RTEMS_POSIX_TIMERS_h |
---|
6 | #define __RTEMS_POSIX_TIMERS_h |
---|
7 | |
---|
8 | /* |
---|
9 | * Data for a timer |
---|
10 | */ |
---|
11 | |
---|
12 | typedef struct { |
---|
13 | pthread_t thread_id; /* Thread identifier */ |
---|
14 | char state; /* State of the timer */ |
---|
15 | struct sigevent inf; /* Information associated to the timer */ |
---|
16 | timer_t timer_id; /* Created timer identifier */ |
---|
17 | struct itimerspec timer_data; /* Timing data of the timer */ |
---|
18 | unsigned32 ticks; /* Number of ticks of the initialization */ |
---|
19 | unsigned32 overrun; /* Number of expirations of the timer */ |
---|
20 | rtems_time_of_day time; /* Time in which the timer was started */ |
---|
21 | } timer_alive_t; |
---|
22 | |
---|
23 | /* |
---|
24 | * Array of Timers |
---|
25 | */ |
---|
26 | |
---|
27 | extern int timer_max; |
---|
28 | extern timer_alive_t *timer_struct; |
---|
29 | |
---|
30 | #endif |
---|
31 | /* end of include file */ |
---|
32 | |
---|
Note: See
TracBrowser
for help on using the repository browser.