diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-02 19:04:51 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-02 19:04:51 +0000 |
commit | 68003979629b255fe855c3fdac97c74e3fb059e7 (patch) | |
tree | f584f54908d3f382c943ead222ff2f1b2683a8d8 /cpukit/posix/include/rtems | |
parent | Split cancel.c into multiple files. (diff) | |
download | rtems-68003979629b255fe855c3fdac97c74e3fb059e7.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'cpukit/posix/include/rtems')
-rw-r--r-- | cpukit/posix/include/rtems/posix/timer.h | 32 |
1 files changed, 32 insertions, 0 deletions
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 */ + |