Do not link ghc stage1 using -threaded, only for stage2 or 3
[ghc-hetmet.git] / rts / Weak.h
1 /* -----------------------------------------------------------------------------
2  *
3  * (c) The GHC Team, 1998-2005
4  *
5  * Weak pointers / finalizers
6  *
7  * ---------------------------------------------------------------------------*/
8
9 #ifndef WEAK_H
10 #define WEAK_H
11
12 #include "Capability.h"
13
14 extern rtsBool running_finalizers;
15
16 void runCFinalizer(StgVoid *fn, StgVoid *ptr, StgVoid *env, StgWord flag);
17 void runAllCFinalizers(StgWeak *w);
18 void scheduleFinalizers(Capability *cap, StgWeak *w);
19 void markWeakList(void);
20
21 #endif