diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-11-08 09:29:16 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2020-11-08 09:29:16 -0500 |
commit | 638f38c50e80a19275f3a06535a0dd8130a17a53 (patch) | |
tree | ac18855cd2f39544e4841866fbabb3f86a4d1f35 /rts/Task.h | |
parent | b1d2c1f3246b3740589a59bdf7648c13de47c32b (diff) | |
parent | 07e82ba52228580cfbd90ff031e657acbecc715b (diff) | |
download | haskell-638f38c50e80a19275f3a06535a0dd8130a17a53.tar.gz |
Merge remote-tracking branch 'origin/wip/tsan/all'
Diffstat (limited to 'rts/Task.h')
-rw-r--r-- | rts/Task.h | 8 |
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 |