Skip to content

Commit 4f48fcb

Browse files
committed
Note why __v exists
1 parent 052ec0a commit 4f48fcb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/copyable_task.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ See also [`set_taped_globals!`](@ref).
2121
return typeassert(task_local_storage(:task_variable), T)
2222
end
2323

24+
# A dummy global variable used inside `produce` to ensure that `produce` calls never get
25+
# inlined away. This doesn't ever actually get run, provided that the `produce` call is made
26+
# from a `consume` call.
2427
__v::Int = 5
2528

2629
"""

0 commit comments

Comments
 (0)