EventLog: Factor out ensureRoomFor*Event
[ghc.git] / rts / ThreadLabels.h
1 /* -----------------------------------------------------------------------------
2 * ThreadLabels.h
3 *
4 * (c) The GHC Team 2002-2006
5 *
6 * Table of thread labels.
7 *
8 * ---------------------------------------------------------------------------*/
9
10 #ifndef THREADLABELS_H
11 #define THREADLABELS_H
12
13 #include "BeginPrivate.h"
14
15 #if defined(DEBUG)
16 void initThreadLabelTable (void);
17 void freeThreadLabelTable (void);
18 void * lookupThreadLabel (StgWord key);
19 void removeThreadLabel (StgWord key);
20 #endif
21 void labelThread (Capability *cap,
22 StgTSO *tso,
23 char *label);
24
25 #include "EndPrivate.h"
26
27 #endif /* THREADLABELS_H */