diff options
author | Ben Gamari <ben@smart-cactus.org> | 2018-03-02 11:13:14 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-03-02 11:16:47 -0500 |
commit | 8dab89b4d148d322cd7ac8c374be3342ab017297 (patch) | |
tree | 5d2898f650fdc1390cafa12dc337138301adf253 /rts/Capability.c | |
parent | e261b8523eb547b93b8b9e194bc2566350e7cc60 (diff) | |
download | haskell-8dab89b4d148d322cd7ac8c374be3342ab017297.tar.gz |
rts: Note functions which must take all_tasks_mutex.
Diffstat (limited to 'rts/Capability.c')
-rw-r--r-- | rts/Capability.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rts/Capability.c b/rts/Capability.c index 03b2a86280..f9141ee025 100644 --- a/rts/Capability.c +++ b/rts/Capability.c @@ -498,6 +498,9 @@ giveCapabilityToTask (Capability *cap USED_IF_DEBUG, Task *task) * * The current Task (cap->task) releases the Capability. The Capability is * marked free, and if there is any work to do, an appropriate Task is woken up. + * + * N.B. May need to take all_tasks_mutex. + * * ------------------------------------------------------------------------- */ #if defined(THREADED_RTS) |