Open NHDaly opened 2 years ago
X-Ref:
Lets add @lock to Compat.jl so everyone can use this
@lock
Originally posted by @omus in https://github.com/JuliaTime/TimeZones.jl/pull/356#r711677096
Ref: JuliaLang/julia#36441 and JuliaLang/julia#39588
This would look something like this:
if VERSION >= v"1.3-" using Base: @lock else macro lock(l, e) quote ll = $(esc(l)); $lock(ll); try $(esc(e)) finally $unlock(ll) end end end end
X-Ref:
Originally posted by @omus in https://github.com/JuliaTime/TimeZones.jl/pull/356#r711677096
Ref: JuliaLang/julia#36441 and JuliaLang/julia#39588
This would look something like this: