diff --git a/base/task.jl b/base/task.jl index 92598159e999fc..d19189fa3cb5ee 100644 --- a/base/task.jl +++ b/base/task.jl @@ -688,7 +688,7 @@ end ## scheduler and work queue -struct IntrusiveLinkedListSynchronized{T} +mutable struct IntrusiveLinkedListSynchronized{T} queue::IntrusiveLinkedList{T} lock::Threads.SpinLock IntrusiveLinkedListSynchronized{T}() where {T} = new(IntrusiveLinkedList{T}(), Threads.SpinLock())