summaryrefslogtreecommitdiff
path: root/rts/STM.c
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2006-06-08 14:19:03 +0000
committerSimon Marlow <simonmar@microsoft.com>2006-06-08 14:19:03 +0000
commit0caf5ba4ed0d9585256559a5ee7b5c08275be7a0 (patch)
treec87bb834e43d30ab413f6d04ad9ffec54488f90a /rts/STM.c
parente9b4997c9c98e750aa675bca8e905b48fc9a1e68 (diff)
downloadhaskell-0caf5ba4ed0d9585256559a5ee7b5c08275be7a0.tar.gz
fix a warning
Diffstat (limited to 'rts/STM.c')
-rw-r--r--rts/STM.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/STM.c b/rts/STM.c
index 96db3f65f3..fa6e9da9c9 100644
--- a/rts/STM.c
+++ b/rts/STM.c
@@ -795,9 +795,9 @@ void stmPreGCHook() {
static volatile StgInt64 max_commits = 0;
+#if defined(THREADED_RTS)
static volatile StgBool token_locked = FALSE;
-#if defined(THREADED_RTS)
static void getTokenBatch(Capability *cap) {
while (cas((void *)&token_locked, FALSE, TRUE) == TRUE) { /* nothing */ }
max_commits += TOKEN_BATCH_SIZE;