2015-03-23 21:03:14 +00:00
|
|
|
/*
|
2015-02-26 15:02:31 +00:00
|
|
|
PURPOSE: ( Interval timer/external interrupt alarm signal handler )
|
|
|
|
|
|
|
|
PROGRAMMERS: (((Robert W. Bailey) (LinCom) (April 1992) (--) (Realtime)))
|
|
|
|
*/
|
|
|
|
|
2015-06-01 15:28:29 +00:00
|
|
|
#include "trick/ITimer.hh"
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
@relates Trick::ITimer
|
2015-03-23 21:03:14 +00:00
|
|
|
@brief Signal handler for itimer based sleep timer
|
2015-02-26 15:02:31 +00:00
|
|
|
@param sig - signal number
|
|
|
|
@details
|
2015-03-23 21:03:14 +00:00
|
|
|
-# call sem_post() on the itimer semaphore
|
2015-02-26 15:02:31 +00:00
|
|
|
*/
|
|
|
|
void it_handler(int sig __attribute__ ((unused))) {
|
|
|
|
// Tell the scheduler to wait up from its sleepy time.
|
|
|
|
get_itimer()->semaphore_post() ;
|
|
|
|
}
|