Skip to content

Commit eae29c7

Browse files
Fix typo: RecursiveLock to ReentrantLock (#43192)
1 parent d44a534 commit eae29c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/condition.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ assert_havelock(l::AbstractLock, tid::Nothing) = concurrency_violation()
3434
This struct does not implement a real lock, but instead
3535
pretends to be always locked on the original thread it was allocated on,
3636
and simply ignores all other interactions.
37-
It also does not synchronize tasks; for that use a real lock such as [`RecursiveLock`](@ref).
37+
It also does not synchronize tasks; for that use a real lock such as [`ReentrantLock`](@ref).
3838
This can be used in the place of a real lock to, instead, simply and cheaply assert
3939
that the operation is only occurring on a single cooperatively-scheduled thread.
4040
It is thus functionally equivalent to allocating a real, recursive, task-unaware lock

0 commit comments

Comments
 (0)