summaryrefslogtreecommitdiff
path: root/rts/Ticker.h
blob: 3e62622d5d5da9aa82dfbb57d5594b3c0e3a1fa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* -----------------------------------------------------------------------------
 *
 * (c) The GHC Team 2005
 *
 * Interface to the OS-specific implementation of a regular time signal.
 *
 * ---------------------------------------------------------------------------*/

#ifndef TICKER_H
#define TICKER_H

BEGIN_RTS_PRIVATE

typedef void (*TickProc)(int);

void initTicker  (nat ms, TickProc handle_tick);
void startTicker (void);
void stopTicker  (void);
void exitTicker  (void);

END_RTS_PRIVATE

#endif /* TICKER_H */