Don't Terminate the ticker thread (#3748)
[ghc.git] / rts / Ticker.h
1 /* -----------------------------------------------------------------------------
2 *
3 * (c) The GHC Team 2005
4 *
5 * Interface to the OS-specific implementation of a regular time signal.
6 *
7 * ---------------------------------------------------------------------------*/
8
9 #ifndef TICKER_H
10 #define TICKER_H
11
12 BEGIN_RTS_PRIVATE
13
14 typedef void (*TickProc)(int);
15
16 void initTicker (nat ms, TickProc handle_tick);
17 void startTicker (void);
18 void stopTicker (void);
19 void exitTicker (rtsBool wait);
20
21 END_RTS_PRIVATE
22
23 #endif /* TICKER_H */