summaryrefslogtreecommitdiff
path: root/rts/Sparks.h
diff options
context:
space:
mode:
authorDuncan Coutts <duncan@well-typed.com>2011-06-06 10:32:33 +0100
committerDuncan Coutts <duncan@well-typed.com>2011-07-18 16:31:14 +0100
commit5d091088ce94be4c389fa669911d0e842bd08952 (patch)
treeec18221bfe74de9bbfbdded76b923f90630aaae6 /rts/Sparks.h
parentddb47a91da7132da2303c60a5aff4e38fb2dcf1a (diff)
downloadhaskell-5d091088ce94be4c389fa669911d0e842bd08952.tar.gz
Move allocation of spark pools into initCapability
Rather than a separate phase of initSparkPools. It means all the spark stuff for a capability is initialisaed at the same time, which is then becomes a good place to stick an initial spark trace event.
Diffstat (limited to 'rts/Sparks.h')
-rw-r--r--rts/Sparks.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/Sparks.h b/rts/Sparks.h
index 7db60186c3..e381dd540f 100644
--- a/rts/Sparks.h
+++ b/rts/Sparks.h
@@ -30,7 +30,7 @@ typedef struct {
typedef WSDeque SparkPool;
// Initialisation
-void initSparkPools (void);
+SparkPool *allocSparkPool (void);
// Take a spark from the "write" end of the pool. Can be called
// by the pool owner only.