ThreadLabels.h 707 Bytes
Newer Older
1 2 3
/* -----------------------------------------------------------------------------
 * ThreadLabels.h
 *
4
 * (c) The GHC Team 2002-2006
5 6 7 8
 *
 * Table of thread labels.
 *
 * ---------------------------------------------------------------------------*/
9

Simon Marlow's avatar
Simon Marlow committed
10 11
#ifndef THREADLABELS_H
#define THREADLABELS_H
12

13
#include "BeginPrivate.h"
14

15 16
#if defined(DEBUG)
void    initThreadLabelTable (void);
Ian Lynagh's avatar
Ian Lynagh committed
17
void    freeThreadLabelTable (void);
18 19 20
void *  lookupThreadLabel    (StgWord key);
void    removeThreadLabel    (StgWord key);
#endif
21 22 23
void    labelThread          (Capability *cap,
                              StgTSO     *tso,
                              char       *label);
sof's avatar
sof committed
24

25
#include "EndPrivate.h"
26

Simon Marlow's avatar
Simon Marlow committed
27
#endif /* THREADLABELS_H */