From 52c748eac8175f5f4992334678f4c105825a64e5 Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Tue, 6 Feb 2024 13:49:41 -0500 Subject: [PATCH] Prepare for Base.Lockable c.f. https://github.com/JuliaLang/julia/pull/52898 --- src/ConcurrentUtilities.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ConcurrentUtilities.jl b/src/ConcurrentUtilities.jl index 51ffba7..6d18413 100644 --- a/src/ConcurrentUtilities.jl +++ b/src/ConcurrentUtilities.jl @@ -7,7 +7,7 @@ export Lockable, OrderedSynchronizer, reset!, ReadWriteLock, readlock, readunloc include("try_with_timeout.jl") include("workers.jl") using .Workers -include("lockable.jl") +isdefined(Base, :Lockable) ? (using Base: Lockable) : include("lockable.jl") # https://github.com/JuliaLang/julia/pull/52898 include("spawn.jl") include("synchronizer.jl") include("rwlock.jl")