projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed some 'unused vars' warnings
[ghc-hetmet.git]
/
rts
/
ThreadLabels.c
diff --git
a/rts/ThreadLabels.c
b/rts/ThreadLabels.c
index
72cd5d3
..
6d2a5d6
100644
(file)
--- a/
rts/ThreadLabels.c
+++ b/
rts/ThreadLabels.c
@@
-9,11
+9,13
@@
#include "PosixSource.h"
#include "Rts.h"
#include "PosixSource.h"
#include "Rts.h"
+
#include "ThreadLabels.h"
#include "RtsUtils.h"
#include "Hash.h"
#include <stdlib.h>
#include "ThreadLabels.h"
#include "RtsUtils.h"
#include "Hash.h"
#include <stdlib.h>
+#include <string.h>
#if defined(DEBUG)
/* to the end */
#if defined(DEBUG)
/* to the end */
@@
-28,6
+30,15
@@
initThreadLabelTable(void)
}
void
}
void
+freeThreadLabelTable(void)
+{
+ if (threadLabels != NULL) {
+ freeHashTable(threadLabels, stgFree);
+ threadLabels = NULL;
+ }
+}
+
+static void
updateThreadLabel(StgWord key, void *data)
{
removeThreadLabel(key);
updateThreadLabel(StgWord key, void *data)
{
removeThreadLabel(key);