summaryrefslogtreecommitdiff
path: root/rts/Task.h
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-11-08 09:29:16 -0500
committerBen Gamari <ben@smart-cactus.org>2020-11-08 09:29:16 -0500
commit638f38c50e80a19275f3a06535a0dd8130a17a53 (patch)
treeac18855cd2f39544e4841866fbabb3f86a4d1f35 /rts/Task.h
parentb1d2c1f3246b3740589a59bdf7648c13de47c32b (diff)
parent07e82ba52228580cfbd90ff031e657acbecc715b (diff)
downloadhaskell-638f38c50e80a19275f3a06535a0dd8130a17a53.tar.gz
Merge remote-tracking branch 'origin/wip/tsan/all'
Diffstat (limited to 'rts/Task.h')
-rw-r--r--rts/Task.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/rts/Task.h b/rts/Task.h
index 6e366a5d9b..9b6a8e8d7b 100644
--- a/rts/Task.h
+++ b/rts/Task.h
@@ -16,8 +16,8 @@
#include "BeginPrivate.h"
/*
- Definition of a Task
- --------------------
+ Note [Definition of a Task]
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
A task is an OSThread that runs Haskell code. Every OSThread that
runs inside the RTS, whether as a worker created by the RTS or via
@@ -33,8 +33,8 @@
Haskell code simultaneously. A task relinquishes its Capability
when it is asked to evaluate an external (C) call.
- Ownership of Task
- -----------------
+ Note [Ownership of Task]
+ ~~~~~~~~~~~~~~~~~~~~~~~~
Task ownership is a little tricky. The default situation is that
the Task is an OS-thread-local structure that is owned by the OS