diff options
| author | Iavor S. Diatchki <iavor.diatchki@gmail.com> | 2012-02-12 13:29:29 -0800 |
|---|---|---|
| committer | Iavor S. Diatchki <iavor.diatchki@gmail.com> | 2012-02-12 13:29:29 -0800 |
| commit | cfd89e12334e7dbcc8d9aaee898bcc38b77f549b (patch) | |
| tree | 44510e960a6ac31c88219010052ea9b2e5d7217d /rts/Capability.h | |
| parent | 5851f84733f4ef1ee158b911febd753ced619555 (diff) | |
| parent | 86ebfef9a5acc60b7a2ce3c8f025e6e707f17f87 (diff) | |
| download | haskell-cfd89e12334e7dbcc8d9aaee898bcc38b77f549b.tar.gz | |
Merge remote-tracking branch 'origin/master' into type-nats
Conflicts:
compiler/coreSyn/CoreLint.lhs
Diffstat (limited to 'rts/Capability.h')
| -rw-r--r-- | rts/Capability.h | 7 |
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; |
