Skip to content

Commit

Permalink
Fix reference to concurrency_violation (JuliaLang#34174)
Browse files Browse the repository at this point in the history
This file is in `Threads`, but `concurrency_violation` is in `Base`.
  • Loading branch information
Keno authored and JeffBezanson committed Dec 23, 2019
1 parent d0e5039 commit d98db1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/locks-mt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import Base.Sys.WORD_SIZE

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

function lock(l::SpinLock)
while true
Expand Down

0 comments on commit d98db1c

Please sign in to comment.