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/Schedule.c | |
parent | e261b8523eb547b93b8b9e194bc2566350e7cc60 (diff) | |
download | haskell-8dab89b4d148d322cd7ac8c374be3342ab017297.tar.gz |
rts: Note functions which must take all_tasks_mutex.
Diffstat (limited to 'rts/Schedule.c')
-rw-r--r-- | rts/Schedule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rts/Schedule.c b/rts/Schedule.c index cdb9659d83..b8306df39f 100644 --- a/rts/Schedule.c +++ b/rts/Schedule.c @@ -2005,6 +2005,7 @@ forkProcess(HsStablePtr *entry RELEASE_LOCK(&task->lock); #if defined(THREADED_RTS) + /* N.B. releaseCapability_ below may need to take all_tasks_mutex */ RELEASE_LOCK(&all_tasks_mutex); #endif |