X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=rts%2FTicker.h;h=a39e7d69c1daba5a4a4991b2fd11e4e9419aec11;hp=b06890a049aec5e2d0f9bd0a062df12fa230c7a4;hb=8d71be7cbd079f5eab23484a53a43b59dd0399e5;hpb=37e27d92a0fc14105e4533514c3995fccd6da9fe diff --git a/rts/Ticker.h b/rts/Ticker.h index b06890a..a39e7d6 100644 --- a/rts/Ticker.h +++ b/rts/Ticker.h @@ -2,14 +2,18 @@ * * (c) The GHC Team 2005 * - * Ticker interface (implementation is OS-specific) + * Interface to the OS-specific implementation of a regular time signal. * * ---------------------------------------------------------------------------*/ #ifndef TICKER_H #define TICKER_H -extern void startTicker( nat ms, TickProc handle_tick ); -extern void stopTicker ( void ); +typedef void (*TickProc)(int); + +extern void initTicker (nat ms, TickProc handle_tick); +extern void startTicker (void); +extern void stopTicker (void); +extern void exitTicker (void); #endif /* TICKER_H */