Skip to content

Commit

Permalink
mark Lockable as exported and update HISTORY.md for Lockable not be…
Browse files Browse the repository at this point in the history
…ing exported in v1.11 (#54595)

companion to #54612. As mentioned
there, in #54590 we originally
intended to export Lockable. This does so for v1.12, and also updates
the HISTORY.md for the fact that Lockable was not exported in v1.11 to
match #54612.
  • Loading branch information
ericphanson authored Jul 24, 2024
1 parent e478e12 commit c6d079c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Multi-threading changes
-----------------------

* `Threads.@threads` now supports the `:greedy` scheduler, intended for non-uniform workloads ([#52096]).
* A new exported struct `Lockable{T, L<:AbstractLock}` makes it easy to bundle a resource and its lock together ([#52898]).
* A new public (but unexported) struct `Base.Lockable{T, L<:AbstractLock}` makes it easy to bundle a resource and its lock together ([#52898]).

Build system changes
--------------------
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ New library features
* `tempname` can now take a suffix string to allow the file name to include a suffix and include that suffix in
the uniquing checking ([#53474])
* `RegexMatch` objects can now be used to construct `NamedTuple`s and `Dict`s ([#50988])
* `Lockable` is now exported ([#54595])

Standard library changes
------------------------
Expand Down
1 change: 1 addition & 0 deletions base/exports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export
IOBuffer,
IOStream,
LinRange,
Lockable,
Irrational,
LazyString,
Matrix,
Expand Down
2 changes: 1 addition & 1 deletion test/misc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ end
# Lockable{T, L<:AbstractLock}
using Base: Lockable
let
@test_broken Base.isexported(Base, :Lockable)
@test Base.isexported(Base, :Lockable)
lockable = Lockable(Dict("foo" => "hello"), ReentrantLock())
# note field access is non-public
@test lockable.value["foo"] == "hello"
Expand Down

0 comments on commit c6d079c

Please sign in to comment.