Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
f59af62c
Commit
f59af62c
authored
Jan 28, 2003
by
simonmar
Browse files
[project @ 2003-01-28 16:22:20 by simonmar]
- Add headers - Make initThreadLabels multi-init-safe
parent
583be3fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
ghc/rts/ThreadLabels.c
View file @
f59af62c
/* -----------------------------------------------------------------------------
* 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
...
...
ghc/rts/ThreadLabels.h
View file @
f59af62c
/* -----------------------------------------------------------------------------
* ThreadLabels.h
*
* (c) The GHC Team 2002-2003
*
* Table of thread labels.
*
* ---------------------------------------------------------------------------*/
#include "Rts.h"
#include "Hash.h"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment