summaryrefslogtreecommitdiff
path: root/rts/Timer.h
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2007-03-02 11:31:04 +0000
committerSimon Marlow <simonmar@microsoft.com>2007-03-02 11:31:04 +0000
commite30aca19def5c629a8429bd57e56535b7f8f85c8 (patch)
tree64513fe1bd809cb0e8442df826a03fb73c324103 /rts/Timer.h
parent090bff7e86dbad7c429532994f3f2fe9d4d8b8ea (diff)
downloadhaskell-e30aca19def5c629a8429bd57e56535b7f8f85c8.tar.gz
Use timer_create() for the interval timer, if available
This lets the threaded RTS use SIGVTALRM rather than SIGALRM for its interval timer signal, so the threaded and non-threaded RTS are compatible. It unfortunately doesn't completely fix #850/#1156, for that we really have to use a restartable sleep instead of usleep(). Also I cleaned up the timer API a little: instead of returning an error value that ultimately gets ignored, we now report errors from system calls and exit.
Diffstat (limited to 'rts/Timer.h')
-rw-r--r--rts/Timer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/Timer.h b/rts/Timer.h
index 1fe857d969..6d3c4150b0 100644
--- a/rts/Timer.h
+++ b/rts/Timer.h
@@ -11,7 +11,7 @@
typedef void (*TickProc)(int);
-extern int startTimer(void);
-extern int stopTimer(void);
+extern void startTimer(void);
+extern void stopTimer(void);
#endif /* TIMER_H */