From 68003979629b255fe855c3fdac97c74e3fb059e7 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 2 Nov 1999 19:04:51 +0000 Subject: *** empty log message *** --- cpukit/posix/include/rtems/posix/timer.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 cpukit/posix/include/rtems/posix/timer.h (limited to 'cpukit/posix/include/rtems') diff --git a/cpukit/posix/include/rtems/posix/timer.h b/cpukit/posix/include/rtems/posix/timer.h new file mode 100644 index 0000000000..264a172d23 --- /dev/null +++ b/cpukit/posix/include/rtems/posix/timer.h @@ -0,0 +1,32 @@ +/* + * $Id$ + */ + +#ifndef __RTEMS_POSIX_TIMERS_h +#define __RTEMS_POSIX_TIMERS_h + +/* + * Data for a timer + */ + +typedef struct { + pthread_t thread_id; /* Thread identifier */ + char state; /* State of the timer */ + struct sigevent inf; /* Information associated to the timer */ + timer_t timer_id; /* Created timer identifier */ + struct itimerspec timer_data; /* Timing data of the timer */ + unsigned32 ticks; /* Number of ticks of the initialization */ + unsigned32 overrun; /* Number of expirations of the timer */ + rtems_time_of_day time; /* Time in which the timer was started */ +} timer_alive_t; + +/* + * Array of Timers + */ + +extern int timer_max; +extern timer_alive_t *timer_struct; + +#endif +/* end of include file */ + -- cgit v1.2.3