Skip to content

Commit d98db1c

Browse files
KenoJeffBezanson
authored andcommitted
Fix reference to concurrency_violation (#34174)
This file is in `Threads`, but `concurrency_violation` is in `Base`.
1 parent d0e5039 commit d98db1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/locks-mt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ import Base.Sys.WORD_SIZE
5656

5757
# Note: this cannot assert that the lock is held by the correct thread, because we do not
5858
# track which thread locked it. Users beware.
59-
Base.assert_havelock(l::SpinLock) = islocked(l) ? nothing : concurrency_violation()
59+
Base.assert_havelock(l::SpinLock) = islocked(l) ? nothing : Base.concurrency_violation()
6060

6161
function lock(l::SpinLock)
6262
while true

0 commit comments

Comments
 (0)