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/Task.c | |
parent | e261b8523eb547b93b8b9e194bc2566350e7cc60 (diff) | |
download | haskell-8dab89b4d148d322cd7ac8c374be3342ab017297.tar.gz |
rts: Note functions which must take all_tasks_mutex.
Diffstat (limited to 'rts/Task.c')
-rw-r--r-- | rts/Task.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rts/Task.c b/rts/Task.c index fc928d5e31..758ae10ffc 100644 --- a/rts/Task.c +++ b/rts/Task.c @@ -199,6 +199,7 @@ freeTask (Task *task) stgFree(task); } +/* Must take all_tasks_mutex */ static Task* newTask (bool worker) { @@ -443,6 +444,7 @@ workerStart(Task *task) scheduleWorker(cap,task); } +/* N.B. must take all_tasks_mutex */ void startWorkerTask (Capability *cap) { |