a448979525ec08995f25121732663aecc0c1c932
[ghc-hetmet.git] / ghc / includes / Hooks.h
1 /* -----------------------------------------------------------------------------
2  * $Id: Hooks.h,v 1.7 2004/02/15 13:29:44 krasimir Exp $
3  *
4  * (c) The GHC Team, 1998-1999
5  *
6  * User-overridable RTS hooks.
7  *
8  * ---------------------------------------------------------------------------*/
9
10 extern char *ghc_rts_opts;
11
12 extern void OnExitHook (void);
13 extern int  NoRunnableThreadsHook (void);
14 extern void StackOverflowHook (unsigned long stack_size);
15 extern void OutOfHeapHook (unsigned long request_size, unsigned long heap_size);
16 extern void MallocFailHook (unsigned long request_size /* in bytes */, char *msg);
17 extern void defaultsHook (void);
18 #if defined(PAR)
19 extern void InitEachPEHook (void);
20 extern void ShutdownEachPEHook (void);
21 #endif