summaryrefslogtreecommitdiff
path: root/rts/Capability.h
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2012-01-06 22:01:53 +0000
committerSimon Marlow <marlowsd@gmail.com>2012-02-07 13:23:56 +0000
commita0c7808243b2e785d3365cd5146316b6cc8b0138 (patch)
tree74dfa77c38feab65208db662334b18ebca5c6bfd /rts/Capability.h
parent0053aa290021ac7611e8ae6a1f3dfebdcce0c9f5 (diff)
downloadhaskell-a0c7808243b2e785d3365cd5146316b6cc8b0138.tar.gz
comments
Diffstat (limited to 'rts/Capability.h')
-rw-r--r--rts/Capability.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/rts/Capability.h b/rts/Capability.h
index 91b4567186..2ae2fcf6d7 100644
--- a/rts/Capability.h
+++ b/rts/Capability.h
@@ -96,7 +96,11 @@ struct Capability_ {
Task *spare_workers;
nat n_spare_workers; // count of above
- // This lock protects running_task, returning_tasks_{hd,tl}, wakeup_queue.
+ // This lock protects:
+ // running_task
+ // returning_tasks_{hd,tl}
+ // wakeup_queue
+ // inbox
Mutex lock;
// Tasks waiting to return from a foreign call, or waiting to make
@@ -108,6 +112,7 @@ struct Capability_ {
Task *returning_tasks_tl;
// Messages, or END_TSO_QUEUE.
+ // Locks required: cap->lock
Message *inbox;
SparkPool *sparks;