X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FItimer.h;h=47fbbb6fb90cb0bc4a16394c341374a51de690d2;hb=cbc7228335a0489362d8f5deadaecacc8731a4ce;hp=257d2748e618cae5307e8455429ca80e2f340d41;hpb=66f7a41dfbf02a000ef3fb2a2b84c89f5dd53177;p=ghc-hetmet.git diff --git a/ghc/rts/Itimer.h b/ghc/rts/Itimer.h index 257d274..47fbbb6 100644 --- a/ghc/rts/Itimer.h +++ b/ghc/rts/Itimer.h @@ -1,24 +1,20 @@ /* ----------------------------------------------------------------------------- - * $Id: Itimer.h,v 1.6 2000/08/03 11:28:35 simonmar Exp $ * - * (c) The GHC Team 1998-1999 + * (c) The GHC Team 1998-2001 * * Interval timer for profiling and pre-emptive scheduling. * * ---------------------------------------------------------------------------*/ +#ifndef __ITIMER_H__ +#define __ITIMER_H__ -# define TICK_FREQUENCY 50 /* ticks per second */ -# define TICK_MILLISECS (1000/TICK_FREQUENCY) /* ms per tick */ +extern int startTicker( nat ms, TickProc handle_tick); +extern int stopTicker ( void ); -/* Context switch timing constants. Context switches happen after a - * whole number of ticks, the default being every tick. - */ -#define CS_MIN_MILLISECS TICK_MILLISECS /* milliseconds per slice */ - -extern rtsBool do_prof_ticks; /* profiling ticks on/off */ - -nat initialize_virtual_timer ( nat ms ); -int install_vtalrm_handler ( void ); -void block_vtalrm_signal ( void ); -void unblock_vtalrm_signal ( void ); -unsigned int getourtimeofday ( void ); +extern nat getourtimeofday ( void ); +#if 0 +/* unused */ +extern void block_vtalrm_signal ( void ); +extern void unblock_vtalrm_signal ( void ); +#endif +#endif /* __ITIMER_H__ */