Make tidyProgram discard speculative specialisation rules
[ghc.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 #include "BeginPrivate.h"
15
16 extern rtsBool running_finalizers;
17 extern StgWeak * dead_weak_ptr_list;
18
19 void runCFinalizers(StgCFinalizerList *list);
20 void runAllCFinalizers(StgWeak *w);
21 void scheduleFinalizers(Capability *cap, StgWeak *w);
22 void markWeakList(void);
23
24 #include "EndPrivate.h"
25
26 #endif /* WEAK_H */
27
28
29 // Local Variables:
30 // mode: C
31 // fill-column: 80
32 // indent-tabs-mode: nil
33 // c-basic-offset: 4
34 // buffer-file-coding-system: utf-8-unix
35 // End: