Skip to content

Commit

Permalink
Fix typo: RecursiveLock to ReentrantLock (JuliaLang#43192)
Browse files Browse the repository at this point in the history
  • Loading branch information
A1-Mathematik authored and LilithHafner committed Mar 8, 2022
1 parent afcd13e commit 3455435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/condition.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ assert_havelock(l::AbstractLock, tid::Nothing) = concurrency_violation()
This struct does not implement a real lock, but instead
pretends to be always locked on the original thread it was allocated on,
and simply ignores all other interactions.
It also does not synchronize tasks; for that use a real lock such as [`RecursiveLock`](@ref).
It also does not synchronize tasks; for that use a real lock such as [`ReentrantLock`](@ref).
This can be used in the place of a real lock to, instead, simply and cheaply assert
that the operation is only occurring on a single cooperatively-scheduled thread.
It is thus functionally equivalent to allocating a real, recursive, task-unaware lock
Expand Down

0 comments on commit 3455435

Please sign in to comment.