We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f026e3 commit e3e1f1eCopy full SHA for e3e1f1e
base/lock.jl
@@ -435,10 +435,10 @@ This provides an acquire & release memory ordering on notify/wait.
435
The `autoreset` functionality and memory ordering guarantee requires at least Julia 1.8.
436
"""
437
mutable struct Event
438
- notify::Threads.Condition
439
- autoreset::Bool
+ const notify::ThreadSynchronizer
+ const autoreset::Bool
440
@atomic set::Bool
441
- Event(autoreset::Bool=false) = new(Threads.Condition(), autoreset, false)
+ Event(autoreset::Bool=false) = new(ThreadSynchronizer(), autoreset, false)
442
end
443
444
function wait(e::Event)
0 commit comments