projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
For consistency, changed access of thread id to be through capability instead of...
[ghc-hetmet.git]
/
rts
/
ThreadLabels.c
diff --git
a/rts/ThreadLabels.c
b/rts/ThreadLabels.c
index
72cd5d3
..
6919e1a
100644
(file)
--- a/
rts/ThreadLabels.c
+++ b/
rts/ThreadLabels.c
@@
-14,6
+14,7
@@
#include "Hash.h"
#include <stdlib.h>
#include "Hash.h"
#include <stdlib.h>
+#include <string.h>
#if defined(DEBUG)
/* to the end */
#if defined(DEBUG)
/* to the end */
@@
-28,6
+29,15
@@
initThreadLabelTable(void)
}
void
}
void
+freeThreadLabelTable(void)
+{
+ if (threadLabels != NULL) {
+ freeHashTable(threadLabels, NULL);
+ threadLabels = NULL;
+ }
+}
+
+void
updateThreadLabel(StgWord key, void *data)
{
removeThreadLabel(key);
updateThreadLabel(StgWord key, void *data)
{
removeThreadLabel(key);