Unify event logging and debug tracing.
[ghc-hetmet.git] / rts / Ticker.h
index f955576..159820d 100644 (file)
@@ -2,14 +2,22 @@
  *
  * (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 int  startTicker( nat ms, TickProc handle_tick );
-extern int  stopTicker ( void );
+#pragma GCC visibility push(hidden)
+
+typedef void (*TickProc)(int);
+
+void initTicker  (nat ms, TickProc handle_tick);
+void startTicker (void);
+void stopTicker  (void);
+void exitTicker  (void);
+
+#pragma GCC visibility pop
 
 #endif /* TICKER_H */