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

#pragma once

#include "BeginPrivate.h"

typedef void (*TickProc)(int);

void initTicker  (Time interval, TickProc handle_tick);
void startTicker (void);
void stopTicker  (void);
void exitTicker  (bool wait);

#include "EndPrivate.h"