X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FThreadLabels.c;h=6919e1ae383efdb3e7feb26a8316dedaa8cae8d9;hb=decf06a77b1331d3af9304e55164bb0a51c15a7f;hp=72cd5d3c4b073e04748618f20b7a9b9f36a7dc24;hpb=b1953bbb1ed3cb16497e5447db7487f0c2d9e41a;p=ghc-hetmet.git diff --git a/rts/ThreadLabels.c b/rts/ThreadLabels.c index 72cd5d3..6919e1a 100644 --- a/rts/ThreadLabels.c +++ b/rts/ThreadLabels.c @@ -14,6 +14,7 @@ #include "Hash.h" #include +#include #if defined(DEBUG) /* to the end */ @@ -28,6 +29,15 @@ initThreadLabelTable(void) } void +freeThreadLabelTable(void) +{ + if (threadLabels != NULL) { + freeHashTable(threadLabels, NULL); + threadLabels = NULL; + } +} + +void updateThreadLabel(StgWord key, void *data) { removeThreadLabel(key);