Commit f59af62c authored by simonmar's avatar simonmar
Browse files

[project @ 2003-01-28 16:22:20 by simonmar]

- Add headers
- Make initThreadLabels multi-init-safe
parent 583be3fa
/* -----------------------------------------------------------------------------
* ThreadLabels.c
*
* (c) The GHC Team 2002-2003
*
* Table of thread labels.
*
* ---------------------------------------------------------------------------*/
#include "PosixSource.h"
#include "ThreadLabels.h"
......@@ -9,8 +17,9 @@ static HashTable * threadLabels = NULL;
void
initThreadLabelTable(void)
{
ASSERT(threadLabels == NULL);
threadLabels = allocHashTable();
if (threadLabels == NULL) {
threadLabels = allocHashTable();
}
}
void
......
/* -----------------------------------------------------------------------------
* ThreadLabels.h
*
* (c) The GHC Team 2002-2003
*
* Table of thread labels.
*
* ---------------------------------------------------------------------------*/
#include "Rts.h"
#include "Hash.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment